There was an error while loading. Please reload this page.
mro
inspect._getmembers
1 parent ac115b5 commit 2653b82Copy full SHA for 2653b82
1 file changed
Lib/inspect.py
@@ -537,7 +537,7 @@ def _getmembers(object, predicate, getter):
537
processed = set()
538
names = dir(object)
539
if isclass(object):
540
- mro = (object,) + getmro(object)
+ mro = getmro(object)
541
# add any DynamicClassAttributes to the list of names if object is a class;
542
# this may result in duplicate entries if, for example, a virtual
543
# attribute with the same name as a DynamicClassAttribute exists
0 commit comments