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
This is correct and intentional. "Types" in the Python type system are much broader than "instances of type", and we're intentionally loose in the runtime so that users can experiment with putting other objects in the type system.
Bug report
Bug description:
According to the documentation of TypeVar
However, in python 3.12.7, it is possible to create a
TypeVar
instance with a non-typebound
:In python 3.10.12, the same code leads to an exception:
CPython versions tested on:
3.10, 3.12
Operating systems tested on:
Linux
The text was updated successfully, but these errors were encountered: