PyDocs

Nav

Python Runtime Services

genericalias.__args__

builtins

attribute
This attribute is a tuple (possibly of length 1) of generic types passed to the original __class_getitem__() of the generic class:
1 Example
>>> dict[str, list[int]].__args__
(<class 'str'>, list[int])
from the Python docs
See Also
No see-alsos for builtins/genericalias.__args__
0 Notes
No notes for genericalias.__args__