usages issues.
This commit is contained in:
1 parent
9ecf3774a0
commit
59225ceaa3
4 files changed
+6
-16
No files matched your search
+1
-2
@@ -25,8 +25,7 @@ def usages(evaluator, definitions, mods):
|
||||
while not stmt.parent.is_scope():
|
||||
stmt = stmt.parent
|
||||
# New definition, call cannot be a part of stmt
|
||||
if len(call.name) == 1 and call.next is None \
|
||||
and call.name in stmt.get_defined_names():
|
||||
if call.next is None and call.name in stmt.get_defined_names():
|
||||
# Class params are not definitions (like function params). They
|
||||
# are super classes, that need to be resolved.
|
||||
if not (isinstance(stmt, pr.Param) and isinstance(stmt.parent, pr.Class)):
|
||||
|
||||
Reference in new issue
Block a user