(self, obj)
return result
Combine ``__dict__`` from ``obj`` and all its superclasses.
Combine ``__dict__`` from ``obj`` and all its superclasses.
Combine __dict__ from obj and all its superclasses .
def _introspect_attributes(self, obj):
        """Combine ``__dict__`` from ``obj`` and all its superclasses."""
        result = {}
        for cls in reversed(obj.__class__.mro()):
            result.update(cls.__dict__)
        if hasattr(obj, "__dict__"):
            result.update(obj.__dict__)
        return result
def _introspect_attributes ( self , obj ) : result = { } for cls in reversed ( obj . __class__ . mro ( ) ) : result . update ( cls . __dict__ ) if hasattr ( obj , "__dict__" ) : result . update ( obj . __dict__ ) return result