You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main.py:24: error: Argument 1 to "append" of "list" has incompatible type "__main__.<subclass of "Foo" and "Bar">1"; expected "__main__.<subclass of "Foo" and "Bar">" [arg-type]
Found 1 error in 1 file (checked 1 source file)
This code filters using an
isinstance
call to try to find objects that fit the profile of bothFoo
andBar
:This code does not fail on Mypy 1.14.1:
https://mypy-play.net/?mypy=1.14.1&python=3.12&gist=7b5be66ab0fb3f04d15a99317ef21a7d
But it does fail on Mypy 1.15:
https://mypy-play.net/?mypy=1.15.0&python=3.12&gist=7b5be66ab0fb3f04d15a99317ef21a7d
Originally posted by @gandhis1 in python/typing#1968
The text was updated successfully, but these errors were encountered: