mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-29 23:57:21 +08:00
check for 'if foo is not None' checks in the NameFinder. Solves the issues with the subprocess library.
This commit is contained in:
1 parent
79556a7935
commit
f57b53bbe2
2 files changed
+29
No files matched your search
@@ -281,3 +281,13 @@ foo = \
|
||||
1
|
||||
#? int()
|
||||
foo
|
||||
|
||||
# -----------------
|
||||
# if `is not` checks
|
||||
# -----------------
|
||||
|
||||
foo = ['a']
|
||||
if foo is not None:
|
||||
foo = ''.join(foo)
|
||||
#? str()
|
||||
foo
|
||||
Reference in new issue
Block a user