Open
Description
Steps to reproduce
- Create file
z.py
a = None
while True:
if a is None or a["1"] == 0:
a = {"1": 1}
else:
break
print("Done")
- run
pylint z.py
Current behavior
E: 3,20: Value 'a' is unsubscriptable (unsubscriptable-object)
Expected behavior
no errors, no warnings
pylint --version output
pylint 1.7.1,
astroid 1.5.2
Python 2.7.13 (default, Dec 18 2016, 07:03:39)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]