Closed mlangkabel closed 5 years ago
Consider the following code sample:
class Test(): def foo(self, bar=True): pass
Here the symbol True is recorded as non-indexed global variable, while there should not be a symbol recorded for this token (same as for any integer or string expression in the indexed code).
True
non-indexed global variable
The same happens if False or None are used as default values.
False
None
It looks like this is only happening for Python 2.
Fixed by merging pull request #36
Consider the following code sample:
Here the symbol
True
is recorded asnon-indexed global variable
, while there should not be a symbol recorded for this token (same as for any integer or string expression in the indexed code).