/third_party/python/Lib/test/ |
D | test_genericclass.py | 154 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/ |
D | typehints.rst | 34 {"__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.py | 119 __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
|
D | queue.py | 220 __class_getitem__ = classmethod(types.GenericAlias) variable in Queue 322 __class_getitem__ = classmethod(types.GenericAlias) variable in _PySimpleQueue
|
D | contextlib.py | 19 __class_getitem__ = classmethod(GenericAlias) variable in AbstractContextManager 41 __class_getitem__ = classmethod(GenericAlias) variable in AbstractAsyncContextManager
|
D | _weakrefset.py | 206 __class_getitem__ = classmethod(GenericAlias) variable in WeakSet
|
D | tempfile.py | 662 __class_getitem__ = classmethod(_types.GenericAlias) variable in SpooledTemporaryFile 852 __class_getitem__ = classmethod(_types.GenericAlias) variable in TemporaryDirectory
|
D | filecmp.py | 255 __class_getitem__ = classmethod(GenericAlias) variable in dircmp
|
D | functools.py | 416 __class_getitem__ = classmethod(GenericAlias) variable in partialmethod 992 __class_getitem__ = classmethod(GenericAlias) variable in cached_property
|
D | fileinput.py | 415 __class_getitem__ = classmethod(GenericAlias) variable in FileInput
|
D | dataclasses.py | 239 def __class_getitem__(cls, type): member in InitVar 312 __class_getitem__ = classmethod(GenericAlias) variable in Field
|
D | subprocess.py | 450 __class_getitem__ = classmethod(types.GenericAlias) variable in CompletedProcess 1013 __class_getitem__ = classmethod(types.GenericAlias) variable in Popen
|
/third_party/python/Lib/asyncio/ |
D | queues.py | 72 def __class_getitem__(cls, type): member in Queue
|
D | futures.py | 109 def __class_getitem__(cls, type): member in Future
|
D | tasks.py | 126 def __class_getitem__(cls, type): member in Task
|
/third_party/python/Lib/concurrent/futures/ |
D | thread.py | 66 __class_getitem__ = classmethod(types.GenericAlias) variable in _WorkItem
|
D | _base.py | 557 __class_getitem__ = classmethod(types.GenericAlias) variable in Future
|
/third_party/python/Doc/reference/ |
D | datamodel.rst | 2218 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/ |
D | queues.py | 380 __class_getitem__ = classmethod(types.GenericAlias) variable in SimpleQueue
|
D | shared_memory.py | 532 __class_getitem__ = classmethod(types.GenericAlias) variable in ShareableList
|
/third_party/python/Lib/http/ |
D | cookies.py | 423 __class_getitem__ = classmethod(types.GenericAlias) variable in Morsel
|
/third_party/python/Misc/NEWS.d/ |
D | 3.9.0a2.rst | 301 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).
|
D | 3.7.0a4.rst | 19 ``__class_getitem__`` is now an automatic class method. 175 :pep:`560`: Add support for ``__mro_entries__`` and ``__class_getitem__``. Implemented
|
D | 3.9.0a3.rst | 654 Implement dummy ``__class_getitem__`` for 664 Implement dummy ``__class_getitem__`` for ``subprocess.Popen``,
|
/third_party/python/Lib/ctypes/ |
D | __init__.py | 454 __class_getitem__ = classmethod(_types.GenericAlias) variable in LibraryLoader
|