Home
last modified time | relevance | path

Searched refs:TypeVar (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_typing.py10 from typing import TypeVar, AnyStr
147 T = TypeVar('T')
151 self.assertIsInstance(T, TypeVar)
154 T = TypeVar('T')
159 T = TypeVar('T')
167 X = TypeVar('X', int)
171 X = TypeVar('X')
172 Y = TypeVar('Y')
184 A = TypeVar('A', str, bytes)
192 T_co = TypeVar('T_co', covariant=True)
[all …]
Dmod_generics_cache.py5 from typing import TypeVar, Generic, Optional
36 T = TypeVar('T')
Dtest_dataclasses.py12 from typing import ClassVar, Any, List, Union, Tuple, Dict, Generic, TypeVar, Optional
1800 T = TypeVar('T')
1815 S = TypeVar('S')
1816 T = TypeVar('T')
1838 T = TypeVar('T')
Dtest_pydoc.py925 T = typing.TypeVar('T')
/external/python/cpython3/Lib/
Dtyping.py136 if isinstance(arg, (type, TypeVar, ForwardRef)):
170 if isinstance(t, TypeVar) and t not in tvars:
185 if isinstance(arg, TypeVar):
483 class TypeVar(_Final, _Immutable, _root=True): class
827 if not all(isinstance(p, TypeVar) for p in params):
1174 T = TypeVar('T') # Any type.
1175 KT = TypeVar('KT') # Key type.
1176 VT = TypeVar('VT') # Value type.
1177 T_co = TypeVar('T_co', covariant=True) # Any type covariant containers.
1178 V_co = TypeVar('V_co', covariant=True) # Any type covariant containers.
[all …]
/external/python/cpython3/Doc/library/
Dtyping.rst22 :data:`Tuple`, :data:`Callable`, :class:`TypeVar`, and
189 called :class:`TypeVar`.
193 from typing import Sequence, TypeVar
195 T = TypeVar('T') # Declare type variable
208 from typing import TypeVar, Generic
211 T = TypeVar('T')
246 from typing import TypeVar, Generic
249 T = TypeVar('T')
250 S = TypeVar('S', int, str)
258 from typing import TypeVar, Generic
[all …]
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DSdkStore.java9 import com.sun.tools.javac.code.Type.TypeVar;
103 if (typeMirror instanceof TypeVar) { in canonicalize()
104 return ((TypeVar) typeMirror).getUpperBound().toString(); in canonicalize()