1
0
forked from VimPlug/jedi

Fix the last remaining issue with decorators.

This commit is contained in:
Dave Halter
2014-11-17 23:59:38 +01:00
parent fd8752f285
commit 4fa78e3482
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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