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 9ef8632 commit 696f1d0Copy full SHA for 696f1d0
Lib/inspect.py
@@ -1698,7 +1698,8 @@ def _shadowed_dict_from_weakref_mro_tuple(*weakref_mro):
1698
class_dict = dunder_dict['__dict__']
1699
if not (type(class_dict) is types.GetSetDescriptorType and
1700
class_dict.__name__ == "__dict__" and
1701
- class_dict.__objclass__ is entry):
+ (class_dict.__objclass__ is object or
1702
+ class_dict.__objclass__ is entry)):
1703
return class_dict
1704
return _sentinel
1705
0 commit comments