Searched refs:GenericAlias (Results 1 – 25 of 36) sorted by relevance
12
/external/python/cpython3/Lib/ |
D | _collections_abc.py | 12 GenericAlias = type(list[int]) variable 115 __class_getitem__ = classmethod(GenericAlias) 176 __class_getitem__ = classmethod(GenericAlias) 264 __class_getitem__ = classmethod(GenericAlias) 398 __class_getitem__ = classmethod(GenericAlias) 426 __class_getitem__ = classmethod(GenericAlias) 726 __class_getitem__ = classmethod(GenericAlias)
|
D | typing.py | 29 from types import WrapperDescriptorType, MethodWrapperType, MethodDescriptorType, GenericAlias 163 if isinstance(obj, types.GenericAlias): 186 if isinstance(t, (_GenericAlias, GenericAlias)): 278 if isinstance(t, (_GenericAlias, GenericAlias)): 282 if isinstance(t, GenericAlias): 283 return GenericAlias(t.__origin__, ev_args) 752 elif isinstance(arg, (_GenericAlias, GenericAlias)): 1459 if isinstance(t, GenericAlias): 1463 return GenericAlias(t.__origin__, stripped_args) 1483 if isinstance(tp, (_BaseGenericAlias, GenericAlias)): [all …]
|
D | queue.py | 220 __class_getitem__ = classmethod(types.GenericAlias) 322 __class_getitem__ = classmethod(types.GenericAlias)
|
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 | os.py | 31 GenericAlias = type(list[int]) variable 1079 __class_getitem__ = classmethod(GenericAlias)
|
D | dataclasses.py | 10 from types import GenericAlias 288 __class_getitem__ = classmethod(GenericAlias)
|
D | difflib.py | 35 from types import GenericAlias 695 __class_getitem__ = classmethod(GenericAlias)
|
/external/python/cpython3/Lib/test/ |
D | test_genericclass.py | 272 from _testcapi import Generic, GenericAlias 273 self.assertIsInstance(Generic.__class_getitem__(int), GenericAlias) 276 self.assertIs(type(IntGeneric), GenericAlias)
|
D | test_genericalias.py | 35 from types import GenericAlias, MappingProxyType, AsyncGeneratorType 168 a = types.GenericAlias(list, int) 273 alias = GenericAlias(list, T) 308 GenericAlias(bad=float)
|
/external/python/cpython3/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))
|
/external/python/cpython3/Lib/concurrent/futures/ |
D | thread.py | 60 __class_getitem__ = classmethod(types.GenericAlias)
|
D | _base.py | 548 __class_getitem__ = classmethod(types.GenericAlias)
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.9.1.rst | 7 ``types.GenericAlias`` will now raise a ``TypeError`` when attempting to
|
D | 3.9.1rc1.rst | 82 :class:`types.GenericAlias` objects can now be the targets of weakrefs. 311 ``GenericAlias``. They have now been changed to do so. 582 :data:`types.GenericAlias`. Also added an entry in glossary for
|
D | 3.9.0rc2.rst | 7 Fix :meth:`__dir__` of :class:`types.GenericAlias`. Patch by Batuhan
|
/external/python/cpython3/Lib/multiprocessing/ |
D | queues.py | 380 __class_getitem__ = classmethod(types.GenericAlias)
|
D | shared_memory.py | 532 __class_getitem__ = classmethod(types.GenericAlias)
|
/external/python/cpython3/Lib/http/ |
D | cookies.py | 423 __class_getitem__ = classmethod(types.GenericAlias)
|
/external/python/cpython3/Lib/ctypes/ |
D | __init__.py | 454 __class_getitem__ = classmethod(_types.GenericAlias)
|
12