mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Fix bug with in operator used with a union of Container and Iterable

Open koogoro opened this issue 3 years ago • 2 comments

Fixes #4954.

Modifies analysis of in comparison expressions. Previously, mypy would check the right operand of an in expression to see if it was a union of Containers, and then if it was a union of Iterables, but would fail on unions of both Containers and Iterables.

koogoro avatar Jan 03 '23 19:01 koogoro

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Jan 03 '23 19:01 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Jan 03 '23 20:01 github-actions[bot]

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

github-actions[bot] avatar Jan 26 '23 20:01 github-actions[bot]