We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b5303 commit b3881bbCopy full SHA for b3881bb
sphinx/environment/__init__.py
@@ -1069,7 +1069,7 @@ def __delitem__(self, key: str) -> None:
1069
1070
def __contains__(self, item: str) -> bool:
1071
if item in {'c:parent_symbol', 'cpp:parent_symbol'}:
1072
- return getattr(self, item) is not None
+ return getattr(self, self.__attr_map[item]) is not None
1073
return item in self.__attr_map or item in self._extension_data
1074
1075
def __iter__(self) -> Iterator[str]:
0 commit comments