Home
last modified time | relevance | path

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

/third_party/grpc/src/python/grpcio/grpc/experimental/aio/
D_typing.py17 TypeVar, Union)
22 RequestType = TypeVar('RequestType')
23 ResponseType = TypeVar('ResponseType')
/third_party/grpc/src/python/grpcio/grpc/aio/
D_typing.py17 TypeVar, Union)
22 RequestType = TypeVar('RequestType')
23 ResponseType = TypeVar('ResponseType')
/third_party/python/Lib/test/
Dtest_typing.py10 from typing import TypeVar, AnyStr
155 T = TypeVar('T')
159 self.assertIsInstance(T, TypeVar)
162 T = TypeVar('T')
167 T = TypeVar('T')
175 X = TypeVar('X', int)
179 X = TypeVar('X')
180 Y = TypeVar('Y')
192 X = TypeVar('X')
202 A = TypeVar('A', str, bytes)
[all …]
Dmod_generics_cache.py5 from typing import TypeVar, Generic, Optional
36 T = TypeVar('T')
Dtest_genericalias.py44 from typing import TypeVar
45 T = TypeVar('T')
46 K = TypeVar('K')
47 V = TypeVar('V')
Dtest_types.py18 T = typing.TypeVar("T")
732 TV = typing.TypeVar('T')
762 typing.Hashable, typing.TypeVar('T'))
769 T = typing.TypeVar("T")
770 S = typing.TypeVar("S")
785 T = typing.TypeVar('T')
786 S = typing.TypeVar('S')
827 T = typing.TypeVar("T")
833 T = typing.TypeVar('T')
924 TypeVar = BadMeta('TypeVar', (), {})
[all …]
Dtest_dataclasses.py14 from typing import ClassVar, Any, List, Union, Tuple, Dict, Generic, TypeVar, Optional, Protocol
1872 T = TypeVar('T')
1887 S = TypeVar('S')
1888 T = TypeVar('T')
1910 T = TypeVar('T')
Dtest_pydoc.py1055 T = typing.TypeVar('T')
Dtest_inspect.py3115 from typing import Generic, TypeVar
3117 T = TypeVar('T')
/third_party/python/Lib/importlib/metadata/
D_meta.py1 from typing import Any, Dict, Iterator, List, Protocol, TypeVar, Union
4 _T = TypeVar("_T")
/third_party/python/Lib/
Dtyping.py172 if isinstance(arg, (type, TypeVar, ForwardRef, types.UnionType, ParamSpec)):
212 typevar_types = TypeVar
750 class TypeVar( _Final, _Immutable, _TypeVarLike, _root=True): class
1003 _typevar_types=TypeVar,
1174 _typevar_types=(TypeVar, ParamSpec),
1274 _typevar_types=(TypeVar, ParamSpec),
1311 if not all(isinstance(p, (TypeVar, ParamSpec)) for p in params):
1325 _typevar_types=(TypeVar, ParamSpec),
1338 tvars = _collect_type_vars(cls.__orig_bases__, (TypeVar, ParamSpec))
2053 T = TypeVar('T') # Any type.
[all …]
/third_party/python/Tools/peg_generator/pegen/
Dparser.py9 from typing import Any, Callable, cast, Dict, Optional, Tuple, Type, TypeVar
15 T = TypeVar("T")
16 P = TypeVar("P", bound="Parser")
17 F = TypeVar("F", bound=Callable[..., Any])
/third_party/python/Doc/library/
Dtyping.rst22 :class:`TypeVar`, and :class:`Generic`. For a full specification, please see
247 called :class:`TypeVar`.
252 from typing import TypeVar
254 T = TypeVar('T') # Declare type variable
268 from typing import TypeVar, Generic
271 T = TypeVar('T')
306 from typing import TypeVar, Generic
309 T = TypeVar('T')
310 S = TypeVar('S', int, str)
318 from typing import TypeVar, Generic
[all …]
Dstdtypes.rst4889 >>> from typing import TypeVar
4890 >>> Y = TypeVar('Y')
4968 >>> from typing import TypeVar
4970 >>> T = TypeVar('T')
/third_party/grpc/src/python/grpcio/grpc/
D_simple_stubs.py22 Tuple, TypeVar, Union)
27 RequestType = TypeVar('RequestType')
28 ResponseType = TypeVar('ResponseType')
/third_party/markupsafe/
D__init__.py239 _ListOrDict = t.TypeVar("_ListOrDict", list, dict)
/third_party/mbedtls/tests/scripts/
Dgenerate_psa_tests.py28 from typing import Callable, Dict, FrozenSet, Iterable, Iterator, List, Optional, TypeVar
37 T = TypeVar('T') #pylint: disable=invalid-name
/third_party/mesa3d/bin/pick/
Dui.py34 WidgetType = typing.TypeVar('WidgetType', bound=urwid.Widget)
/third_party/python/Misc/NEWS.d/
D3.9.0a6.rst367 :class:`typing.TypeVar`. Patch by Weipeng Hong.
D3.10.0b1.rst831 Fixed the return value of ``TypeVar.__ror__``. Patch by Jelle Zijlstra.