Start using ExprStmt.
This commit is contained in:
1 parent
f57d9ef675
commit
cb84bc0829
3 files changed
+4
-4
No files matched your search
@@ -271,7 +271,7 @@ class InstanceElement(use_metaclass(CachedMetaClass, pr.Base)):
|
||||
return pr.Simple.get_parent_until(self, *args, **kwargs)
|
||||
|
||||
def get_definition(self):
|
||||
return self.get_parent_until((pr.Statement, pr.IsScope, pr.Import))
|
||||
return self.get_parent_until((pr.ExprStmt, pr.IsScope, pr.Import))
|
||||
|
||||
def get_decorated_func(self):
|
||||
""" Needed because the InstanceElement should not be stripped """
|
||||
|
||||
Reference in new issue
Block a user