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
Please add support for the TypeIs special form from PEP 742. Pytype support would help enable us to use the new feature in typeshed.
I am willing to work on this myself, but I might need some help getting the tests to run; when I last tried to build pytype locally, CMake didn't work.
The text was updated successfully, but these errors were encountered:
Thanks! I already implemented it in both mypy and pyanalyze and it was pretty easy to do, essentially combining the mechanics of TypeGuard with the narrowing semantics of isinstance(). My mypy PR has a set of test cases that may be useful: python/mypy#16898
Please add support for the
TypeIs
special form from PEP 742. Pytype support would help enable us to use the new feature in typeshed.I am willing to work on this myself, but I might need some help getting the tests to run; when I last tried to build pytype locally, CMake didn't work.
The text was updated successfully, but these errors were encountered: