forked from VimPlug/jedi
Fix the last remaining issue with decorators.
This commit is contained in:
@@ -500,7 +500,7 @@ class Scope(Simple, DocstringMixin):
|
|||||||
for element in children:
|
for element in children:
|
||||||
if isinstance(element, typ):
|
if isinstance(element, typ):
|
||||||
elements.append(element)
|
elements.append(element)
|
||||||
if is_node(element, 'suite', 'simple_stmt') \
|
if is_node(element, 'suite', 'simple_stmt', 'decorated') \
|
||||||
or isinstance(element, Flow):
|
or isinstance(element, Flow):
|
||||||
elements += scan(element.children)
|
elements += scan(element.children)
|
||||||
return elements
|
return elements
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ class SelfVars():
|
|||||||
@Decorator
|
@Decorator
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
init decorators should be ignored when looking up variables in the
|
__init__ decorators should be ignored when looking up variables in the
|
||||||
class.
|
class.
|
||||||
"""
|
"""
|
||||||
self.c = list
|
self.c = list
|
||||||
|
|||||||
Reference in New Issue
Block a user