PY-12425 Fixed: Completion breaks when implementing a callable object with the __call__ method

Fix callType calculating for class instance: resolve __call__ member and process all possible return types
This commit is contained in:
Semyon Proshev
2016-02-15 16:06:48 +03:00
parent 682390069d
commit 77356abd34
13 changed files with 187 additions and 3 deletions
@@ -0,0 +1,14 @@
class Foo(object):
bar = True
class FooMakerAnc(object):
def __call__(self):
return Foo()
class FooMaker(FooMakerAnc):
pass
fm = FooMaker()
f3 = fm()
f3.b<caret>