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:
|
||||
if isinstance(element, typ):
|
||||
elements.append(element)
|
||||
if is_node(element, 'suite', 'simple_stmt') \
|
||||
if is_node(element, 'suite', 'simple_stmt', 'decorated') \
|
||||
or isinstance(element, Flow):
|
||||
elements += scan(element.children)
|
||||
return elements
|
||||
|
||||
@@ -121,7 +121,7 @@ class SelfVars():
|
||||
@Decorator
|
||||
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.
|
||||
"""
|
||||
self.c = list
|
||||
|
||||
Reference in New Issue
Block a user