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
It seems because runtime class is Foo, not Foo[int].
Yes, and this is intentional. The original class is stored in __orig_class__ this is however not an official API. Or you can better use typing_inspect.get_generic_type(obj) which is a thin wrapper around this API.
It seems this is not possible?
Example:
I would expect that this prints out
int
as__args__
, but it does not. It seems because runtime class isFoo
, notFoo[int]
.The text was updated successfully, but these errors were encountered: