Home
last modified time | relevance | path

Searched refs:__class_getitem__ (Results 1 – 25 of 45) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_genericclass.py154 def __class_getitem__(*args, **kwargs): member in TestClassGetitem.test_class_getitem.C
163 def __class_getitem__(cls, item): member in TestClassGetitem.test_class_getitem_format.C
170 def __class_getitem__(cls, item): member in TestClassGetitem.test_class_getitem_inheritance.C
178 def __class_getitem__(cls, item): member in TestClassGetitem.test_class_getitem_inheritance_2.C
181 def __class_getitem__(cls, item): member in TestClassGetitem.test_class_getitem_inheritance_2.D
189 def __class_getitem__(cls, item): member in TestClassGetitem.test_class_getitem_classmethod.C
198 def __class_getitem__(cls, item): function
200 cls.__class_getitem__ = classmethod(__class_getitem__)
209 def __class_getitem__(cls, item): member in TestClassGetitem.test_class_getitem_with_builtins.A
219 def __class_getitem__(cls): member in TestClassGetitem.test_class_getitem_errors.C_too_few
[all …]
/third_party/python/Doc/c-api/
Dtypehints.rst34 {"__class_getitem__", (PyCFunction)Py_GenericAlias, METH_O|METH_CLASS, "See PEP 585"}
38 .. seealso:: The data model method :meth:`__class_getitem__`.
/third_party/python/Lib/
D_collections_abc.py119 __class_getitem__ = classmethod(GenericAlias) variable in Awaitable
180 __class_getitem__ = classmethod(GenericAlias) variable in AsyncIterable
268 __class_getitem__ = classmethod(GenericAlias) variable in Iterable
402 __class_getitem__ = classmethod(GenericAlias) variable in Container
564 __class_getitem__ = classmethod(_CallableGenericAlias) variable in Callable
863 __class_getitem__ = classmethod(GenericAlias) variable in MappingView
Dqueue.py220 __class_getitem__ = classmethod(types.GenericAlias) variable in Queue
322 __class_getitem__ = classmethod(types.GenericAlias) variable in _PySimpleQueue
Dcontextlib.py19 __class_getitem__ = classmethod(GenericAlias) variable in AbstractContextManager
41 __class_getitem__ = classmethod(GenericAlias) variable in AbstractAsyncContextManager
D_weakrefset.py206 __class_getitem__ = classmethod(GenericAlias) variable in WeakSet
Dtempfile.py662 __class_getitem__ = classmethod(_types.GenericAlias) variable in SpooledTemporaryFile
852 __class_getitem__ = classmethod(_types.GenericAlias) variable in TemporaryDirectory
Dfilecmp.py255 __class_getitem__ = classmethod(GenericAlias) variable in dircmp
Dfunctools.py416 __class_getitem__ = classmethod(GenericAlias) variable in partialmethod
992 __class_getitem__ = classmethod(GenericAlias) variable in cached_property
Dfileinput.py415 __class_getitem__ = classmethod(GenericAlias) variable in FileInput
Ddataclasses.py239 def __class_getitem__(cls, type): member in InitVar
312 __class_getitem__ = classmethod(GenericAlias) variable in Field
Dsubprocess.py450 __class_getitem__ = classmethod(types.GenericAlias) variable in CompletedProcess
1013 __class_getitem__ = classmethod(types.GenericAlias) variable in Popen
/third_party/python/Lib/asyncio/
Dqueues.py72 def __class_getitem__(cls, type): member in Queue
Dfutures.py109 def __class_getitem__(cls, type): member in Future
Dtasks.py126 def __class_getitem__(cls, type): member in Task
/third_party/python/Lib/concurrent/futures/
Dthread.py66 __class_getitem__ = classmethod(types.GenericAlias) variable in _WorkItem
D_base.py557 __class_getitem__ = classmethod(types.GenericAlias) variable in Future
/third_party/python/Doc/reference/
Ddatamodel.rst2218 class method ``__class_getitem__()``.
2220 .. classmethod:: object.__class_getitem__(cls, key)
2225 When defined on a class, ``__class_getitem__()`` is automatically a class
2230 The purpose of *__class_getitem__*
2233 The purpose of :meth:`~object.__class_getitem__` is to allow runtime
2239 library class that already implements :meth:`~object.__class_getitem__`, or
2241 ``__class_getitem__()``.
2243 Custom implementations of :meth:`~object.__class_getitem__` on classes defined
2245 type-checkers such as mypy. Using ``__class_getitem__()`` on any class for
2252 *__class_getitem__* versus *__getitem__*
[all …]
/third_party/python/Lib/multiprocessing/
Dqueues.py380 __class_getitem__ = classmethod(types.GenericAlias) variable in SimpleQueue
Dshared_memory.py532 __class_getitem__ = classmethod(types.GenericAlias) variable in ShareableList
/third_party/python/Lib/http/
Dcookies.py423 __class_getitem__ = classmethod(types.GenericAlias) variable in Morsel
/third_party/python/Misc/NEWS.d/
D3.9.0a2.rst301 Implement ``__class_getitem__`` for ``os.PathLike``, ``pathlib.Path``.
310 Return class from ``ContextVar.__class_getitem__`` to simplify subclassing.
319 Implement ``__class_getitem__`` on asyncio objects (Future, Task, Queue).
D3.7.0a4.rst19 ``__class_getitem__`` is now an automatic class method.
175 :pep:`560`: Add support for ``__mro_entries__`` and ``__class_getitem__``. Implemented
D3.9.0a3.rst654 Implement dummy ``__class_getitem__`` for
664 Implement dummy ``__class_getitem__`` for ``subprocess.Popen``,
/third_party/python/Lib/ctypes/
D__init__.py454 __class_getitem__ = classmethod(_types.GenericAlias) variable in LibraryLoader

12