Home
last modified time | relevance | path

Searched refs:GenericAlias (Results 1 – 25 of 36) sorted by relevance

12

/external/python/cpython3/Lib/
D_collections_abc.py12 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)
Dtyping.py29 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 …]
Dqueue.py220 __class_getitem__ = classmethod(types.GenericAlias)
322 __class_getitem__ = classmethod(types.GenericAlias)
D_weakrefset.py6 from types import GenericAlias
202 __class_getitem__ = classmethod(GenericAlias)
Dcontextlib.py7 from types import MethodType, GenericAlias
19 __class_getitem__ = classmethod(GenericAlias)
41 __class_getitem__ = classmethod(GenericAlias)
Dfilecmp.py16 from types import GenericAlias
251 __class_getitem__ = classmethod(GenericAlias)
Dfileinput.py76 from types import GenericAlias
395 __class_getitem__ = classmethod(GenericAlias)
Dfunctools.py22 from types import GenericAlias
415 __class_getitem__ = classmethod(GenericAlias)
980 __class_getitem__ = classmethod(GenericAlias)
Dtempfile.py646 __class_getitem__ = classmethod(_types.GenericAlias)
832 __class_getitem__ = classmethod(_types.GenericAlias)
Dtypes.py296 GenericAlias = type(list[int]) variable
Dos.py31 GenericAlias = type(list[int]) variable
1079 __class_getitem__ = classmethod(GenericAlias)
Ddataclasses.py10 from types import GenericAlias
288 __class_getitem__ = classmethod(GenericAlias)
Ddifflib.py35 from types import GenericAlias
695 __class_getitem__ = classmethod(GenericAlias)
/external/python/cpython3/Lib/test/
Dtest_genericclass.py272 from _testcapi import Generic, GenericAlias
273 self.assertIsInstance(Generic.__class_getitem__(int), GenericAlias)
276 self.assertIs(type(IntGeneric), GenericAlias)
Dtest_genericalias.py35 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/
Dtypes.rst245 .. 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/
Dthread.py60 __class_getitem__ = classmethod(types.GenericAlias)
D_base.py548 __class_getitem__ = classmethod(types.GenericAlias)
/external/python/cpython3/Misc/NEWS.d/
D3.9.1.rst7 ``types.GenericAlias`` will now raise a ``TypeError`` when attempting to
D3.9.1rc1.rst82 :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
D3.9.0rc2.rst7 Fix :meth:`__dir__` of :class:`types.GenericAlias`. Patch by Batuhan
/external/python/cpython3/Lib/multiprocessing/
Dqueues.py380 __class_getitem__ = classmethod(types.GenericAlias)
Dshared_memory.py532 __class_getitem__ = classmethod(types.GenericAlias)
/external/python/cpython3/Lib/http/
Dcookies.py423 __class_getitem__ = classmethod(types.GenericAlias)
/external/python/cpython3/Lib/ctypes/
D__init__.py454 __class_getitem__ = classmethod(_types.GenericAlias)

12