class _GenericAlias:
A python-based backport of the types.GenericAlias
class.
E.g. for t = list[int], t.__origin__ is list and t.__args__ is (int,).
types.GenericAlias
.Method | __dir__ |
Implement dir(self). |
Method | __eq__ |
Return self == value. |
Method | __getattribute__ |
Return getattr(self, name). |
Method | __getitem__ |
Return self[key]. |
Method | __hash__ |
Return hash(self). |
Method | __init__ |
Undocumented |
Method | __instancecheck__ |
Check if an obj is an instance. |
Method | __mro_entries__ |
Undocumented |
Method | __reduce__ |
Undocumented |
Method | __repr__ |
Return repr(self). |
Method | __subclasscheck__ |
Check if a cls is a subclass. |
Constant | _ATTR_EXCEPTIONS |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Instance Variable | _args |
Undocumented |
Instance Variable | _hash |
Undocumented |
Instance Variable | _origin |
Undocumented |
Instance Variable | _parameters |
Undocumented |
Property | __args__ |
Undocumented |
Property | __call__ |
Undocumented |
Property | __origin__ |
Undocumented |
Property | __parameters__ |
Type variables in the GenericAlias. |
Parameters | |
value:object | Undocumented |
Returns | |
bool | Undocumented |
Parameters | |
name:str | Undocumented |
Returns | |
Any | Undocumented |
Parameters | |
key:object|Tuple[ | Undocumented |
Returns | |
_T | Undocumented |
Undocumented
Parameters | |
origin:type | Undocumented |
args:object|Tuple[ | Undocumented |
obj
is an instance.Parameters | |
obj:object | Undocumented |
Returns | |
NoReturn | Undocumented |
Undocumented
Parameters | |
bases:Iterable[ | Undocumented |
Returns | |
Tuple[ | Undocumented |
Undocumented
Returns | |
Tuple[ | Undocumented |
cls
is a subclass.Parameters | |
cls:type | Undocumented |
Returns | |
NoReturn | Undocumented |