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
Previously typing.TypeVar could be subclassed, and typing_extensions actually does this. However, the new C implementation of TypeVar doesn't allow subclassing. For compatibility, let's restore the ability to subclass it.
The text was updated successfully, but these errors were encountered:
Looking more at the previous implementation, it wasn't actually subclassable normally, only if you passed the special _root=True argument to __init_subclass__:
Previously
typing.TypeVar
could be subclassed, andtyping_extensions
actually does this. However, the new C implementation ofTypeVar
doesn't allow subclassing. For compatibility, let's restore the ability to subclass it.The text was updated successfully, but these errors were encountered: