forked from VimPlug/jedi
Fix a small _get_annotated_class_object, fixes #1550
This commit is contained in:
@@ -630,3 +630,19 @@ class C1(MyBase):
|
||||
self.f1() . # hey'''
|
||||
#? 13 MyBase.f1
|
||||
self.f1() . # hey'''
|
||||
|
||||
# -----------------
|
||||
# With a very weird __init__
|
||||
# -----------------
|
||||
|
||||
class WithWeirdInit:
|
||||
class __init__:
|
||||
def __init__(self, a):
|
||||
self.a = a
|
||||
|
||||
def y(self):
|
||||
return self.a
|
||||
|
||||
|
||||
#?
|
||||
WithWeirdInit(1).y()
|
||||
|
||||
Reference in New Issue
Block a user