mypy
mypy copied to clipboard
Fix bug with in operator used with a union of Container and Iterable
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.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉