mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-23 19:07:05 +08:00
it should be possible to find the origin of an operation, if it's a faulty one (static analysis)
This commit is contained in:
1 parent
50ceef6e09
commit
15f42d93d7
3 files changed
+25
-10
No files matched your search
@@ -157,7 +157,7 @@ class NameFinder(object):
|
||||
else:
|
||||
p = precedence.create_precedence(expression_list)
|
||||
if (isinstance(p, precedence.Precedence)
|
||||
and p.operator == 'is not'
|
||||
and p.operator.string == 'is not'
|
||||
and p.right.get_code() == 'None'
|
||||
and p.left.get_code() == unicode(self.name_str)):
|
||||
return True
|
||||
|
||||
Reference in new issue
Block a user