Open tibbe opened 1 year ago
Duplicate of #3045.
Knowing a little about our implementation this probably won't be fixed with #3045 so I'm reopening this as an actual issue. Thanks for the report!
I'm also getting this with Exception messages, e.g.
try:
from somewhere import things
# ... do stuff with things
except ImportError as e:
if "No module named 'somewhere'" in e.msg:
print("Tell user to create 'somewhere' from the template")
Bug description
pylint incorrectly raises an error on the membership test below:
Configuration
Command used
Pylint output
Expected behavior
No error as
x
is provablyADict
when the membership test is made andADict
is aTypedDict
, which supports membership tests.Pylint version
OS / Environment
macOS 13.1 (22C65)
Additional dependencies
No response