Suppose we have the following class hierarchy:
class ClassA: @property def foo(self): return \"hello\" class ClassB(ClassA): @property def
{k: getattr(ClassB, k) for k in dir(ClassB)}
Proper values (instead of ) will be presented when using ClassB instance.
ClassB
And of course You can filter this by adding things like if not k.startswith('__') in the end.
if not k.startswith('__')