[Bug] Using filter
in itertools.chain
makes them both infer wrong types.
#8226
Labels
bug
mypy got something wrong
topic-inference
When to infer types or require explicit annotations
topic-join-v-union
Using join vs. using unions
Repro:
Actual output:
Expected output:
I was expecting no errors and didn't expect
filter
to be affected by what it is put in, i.e. if you put filter call separate fromitertools.chain
, it prevents the first errors about missingstrip
attr:The revealed type is still wrong though.
Python version: 3.7.6
Mypy version: 0.760 (still occurs on master)
Used flags:
--strict
The text was updated successfully, but these errors were encountered: