Closed otethal closed 4 days ago
I can confirm that this bisects to issue Eclips4 linked (commit 870b22b9c442d035190d2b8fb82256cd9a03da48)
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