Skip to content

Commit

Permalink
Merge pull request #6482 from ViktorHaag/object-descr-setting-class-t…
Browse files Browse the repository at this point in the history
…ype-map-iss6478

Explicitly treat ObjectDescription._doc_field_type_map as an instance variable
  • Loading branch information
tk0miya committed Jun 18, 2019
2 parents be08561 + e9ee39d commit 982f63e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinx/directives/__init__.py
Expand Up @@ -73,6 +73,7 @@ class ObjectDescription(SphinxDirective):
def get_field_type_map(self):
# type: () -> Dict[str, Tuple[Field, bool]]
if self._doc_field_type_map == {}:
self._doc_field_type_map = {}
for field in self.doc_field_types:
for name in field.names:
self._doc_field_type_map[name] = (field, False)
Expand Down

0 comments on commit 982f63e

Please sign in to comment.