attr-defined
on modules depends on imports in other files
#17746
Labels
bug
mypy got something wrong
attr-defined
on modules depends on imports in other files
#17746
Bug Report
I'm not sure how to put together a good description of this, but here goes: mypy emits
attr-defined
errors (correctly) when importingconcurrent
(but notconcurrent.futures
), and then usingconcurrent.futures
. However, if checking another file in the same pass which does importconcurrent.futures
, it doesn't emit an error for the first file.To Reproduce
Create file
a.py
:Create file
b.py
:Expected Behavior
Should emit an error for
a.py
, regardless of which other files are also being checked:Actual Behavior
Your Environment
--no-incremental --cache-dir=/dev/null
, just because it's less confusing that way. I was also seeing this with cachingmypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: