Discussions on Python.org
How to `isinstance` a typing type so that it works with static type checkers?
Python Help
typing
MegaIng
(Cornelius Krupp)
January 25, 2024, 6:18pm
4
See
Is `Annotated` compatible with `type[T]`?
show post in topic
Related Topics
Topic
Replies
Views
Activity
A canonical "isinstance" implementation for typing types?
Typing
9
2289
October 17, 2023
Must code guarded by `if TYPE_CHECKING` be valid Python code?
Python Help
typing
3
840
October 27, 2023
Instance checking with data Protocols?
Python Help
4
5078
November 28, 2019
Is `Annotated` compatible with `type[T]`?
Typing
46
2444
March 4, 2024
Type checking Annotated metadata
Ideas
typing
16
2682
September 24, 2023