Searched refs:GenericAlias (Results 1 – 25 of 34) sorted by relevance
12
/third_party/python/Lib/ |
D | _collections_abc.py | 12 GenericAlias = type(list[int]) variable 119 __class_getitem__ = classmethod(GenericAlias) 180 __class_getitem__ = classmethod(GenericAlias) 268 __class_getitem__ = classmethod(GenericAlias) 402 __class_getitem__ = classmethod(GenericAlias) 416 class _CallableGenericAlias(GenericAlias): 436 return GenericAlias(origin, args) 483 if isinstance(obj, GenericAlias): 810 __class_getitem__ = classmethod(GenericAlias)
|
D | queue.py | 220 __class_getitem__ = classmethod(types.GenericAlias) 322 __class_getitem__ = classmethod(types.GenericAlias)
|
D | typing.py | 29 from types import WrapperDescriptorType, MethodWrapperType, MethodDescriptorType, GenericAlias 169 if isinstance(obj, types.GenericAlias): 192 if isinstance(t, (_GenericAlias, GenericAlias)): 284 if isinstance(t, (_GenericAlias, GenericAlias)): 288 if isinstance(t, GenericAlias): 289 return GenericAlias(t.__origin__, ev_args) 758 elif isinstance(arg, (_GenericAlias, GenericAlias)): 1466 if isinstance(t, GenericAlias): 1470 return GenericAlias(t.__origin__, stripped_args) 1490 if isinstance(tp, (_BaseGenericAlias, GenericAlias)): [all …]
|
D | _weakrefset.py | 6 from types import GenericAlias 202 __class_getitem__ = classmethod(GenericAlias)
|
D | contextlib.py | 7 from types import MethodType, GenericAlias 19 __class_getitem__ = classmethod(GenericAlias) 41 __class_getitem__ = classmethod(GenericAlias)
|
D | filecmp.py | 16 from types import GenericAlias 251 __class_getitem__ = classmethod(GenericAlias)
|
D | fileinput.py | 76 from types import GenericAlias 395 __class_getitem__ = classmethod(GenericAlias)
|
D | functools.py | 22 from types import GenericAlias 415 __class_getitem__ = classmethod(GenericAlias) 980 __class_getitem__ = classmethod(GenericAlias)
|
D | tempfile.py | 646 __class_getitem__ = classmethod(_types.GenericAlias) 832 __class_getitem__ = classmethod(_types.GenericAlias)
|
D | types.py | 296 GenericAlias = type(list[int]) variable
|
D | dataclasses.py | 10 from types import GenericAlias 288 __class_getitem__ = classmethod(GenericAlias)
|
D | os.py | 31 GenericAlias = type(list[int]) variable 1079 __class_getitem__ = classmethod(GenericAlias)
|
D | difflib.py | 35 from types import GenericAlias 695 __class_getitem__ = classmethod(GenericAlias)
|
D | mailbox.py | 21 from types import GenericAlias 264 __class_getitem__ = classmethod(GenericAlias) 2021 __class_getitem__ = classmethod(GenericAlias)
|
D | subprocess.py | 454 __class_getitem__ = classmethod(types.GenericAlias) 998 __class_getitem__ = classmethod(types.GenericAlias)
|
/third_party/python/Lib/test/ |
D | test_genericalias.py | 35 from types import GenericAlias, MappingProxyType, AsyncGeneratorType 167 a = types.GenericAlias(list, int) 272 alias = GenericAlias(list, T) 307 GenericAlias(bad=float) 310 class SubClass(GenericAlias): ... 312 class Bad(GenericAlias): 330 self.assertIsInstance(alias, GenericAlias)
|
D | test_genericclass.py | 272 from _testcapi import Generic, GenericAlias 273 self.assertIsInstance(Generic.__class_getitem__(int), GenericAlias) 276 self.assertIs(type(IntGeneric), GenericAlias)
|
/third_party/python/Doc/library/ |
D | types.rst | 245 .. class:: GenericAlias(t_origin, t_args) 254 >>> from types import GenericAlias 256 >>> list[int] == GenericAlias(list, (int,)) 258 >>> dict[str, int] == GenericAlias(dict, (str, int))
|
/third_party/python/Lib/concurrent/futures/ |
D | thread.py | 60 __class_getitem__ = classmethod(types.GenericAlias)
|
D | _base.py | 548 __class_getitem__ = classmethod(types.GenericAlias)
|
/third_party/python/Lib/multiprocessing/ |
D | queues.py | 380 __class_getitem__ = classmethod(types.GenericAlias)
|
D | shared_memory.py | 532 __class_getitem__ = classmethod(types.GenericAlias)
|
/third_party/python/Lib/http/ |
D | cookies.py | 423 __class_getitem__ = classmethod(types.GenericAlias)
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 454 __class_getitem__ = classmethod(_types.GenericAlias)
|
/third_party/python/Lib/urllib/ |
D | parse.py | 183 __class_getitem__ = classmethod(types.GenericAlias)
|
12