Searched refs:TypeVarTuple (Results 1 - 2 of 2) sorted by relevance
/third_party/python/Lib/test/ |
H A D | test_typing.py | 17 from typing import TypeVar, TypeVarTuple, Unpack, AnyStr namespace 625 Ts = TypeVarTuple('Ts') 626 Ts2 = TypeVarTuple('Ts2') 652 # Should raise, because more than one `TypeVarTuple` is not supported. 676 Ts = TypeVarTuple('Ts') 773 Ts = TypeVarTuple('Ts') 913 Ts = TypeVarTuple('Ts') 915 Ts2 = TypeVarTuple('Ts2') 919 Ts = TypeVarTuple('Ts') 923 self.assertNotEqual(TypeVarTuple('T [all...] |
/third_party/python/Lib/ |
H A D | typing.py | 13 TypeVar, ParamSpec, TypeVarTuple. 60 'TypeVarTuple', 1035 class TypeVarTuple(_Final, _Immutable, _PickleUsingNameMixin, _root=True): class 1040 Ts = TypeVarTuple('Ts') # Can be given any name 1043 a TypeVarTuple is a placeholder for an *arbitrary* number of types. For 1044 example, if we define a generic class using a TypeVarTuple: 1075 raise TypeError("Substitution of bare TypeVarTuple is not supported") 1081 if isinstance(param, TypeVarTuple): 1082 raise TypeError(f"More than one TypeVarTuple parameter in {alias}") 1452 if isinstance(x, TypeVarTuple) [all...] |
Completed in 10 milliseconds