mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 17:20:55 +07:00
Fix callType calculating for class instance: resolve __call__ member and process all possible return types
14 lines
180 B
Python
14 lines
180 B
Python
class Foo(object):
|
|
bar = True
|
|
|
|
class FooMakerAnc(object):
|
|
def __call__(self):
|
|
return Foo()
|
|
|
|
class FooMaker(FooMakerAnc):
|
|
pass
|
|
|
|
fm = FooMaker()
|
|
f3 = fm()
|
|
|
|
f3.bar |