Home
last modified time | relevance | path

Searched refs:AbstractAsyncContextManager (Results 1 – 9 of 9) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_contextlib_async.py2 from contextlib import asynccontextmanager, AbstractAsyncContextManager, AsyncExitStack
29 class DefaultEnter(AbstractAsyncContextManager):
62 class MissingAexit(AbstractAsyncContextManager):
75 self.assertTrue(issubclass(ManagerFromScratch, AbstractAsyncContextManager))
77 class DefaultEnter(AbstractAsyncContextManager):
81 self.assertTrue(issubclass(DefaultEnter, AbstractAsyncContextManager))
86 self.assertFalse(issubclass(NoneAenter, AbstractAsyncContextManager))
91 self.assertFalse(issubclass(NoneAexit, AbstractAsyncContextManager))
Dtest_genericalias.py11 from contextlib import AbstractContextManager, AbstractAsyncContextManager
58 AbstractContextManager, AbstractAsyncContextManager,
/external/python/cpython3/Lib/
Dcontextlib.py37 class AbstractAsyncContextManager(abc.ABC): class
54 if cls is AbstractAsyncContextManager:
170 AbstractAsyncContextManager):
525 class AsyncExitStack(_BaseExitStack, AbstractAsyncContextManager):
Dtyping.py1689 AsyncContextManager = _alias(contextlib.AbstractAsyncContextManager, 1, name='AsyncContextManager')
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst735 Add contextlib.AbstractAsyncContextManager. Patch by Jelle Zijlstra.
/external/python/cpython3/Doc/library/
Dtyping.rst1510 A generic version of :class:`contextlib.AbstractAsyncContextManager`.
1516 :class:`contextlib.AbstractAsyncContextManager` now supports ``[]``. See
Dcontextlib.rst32 .. class:: AbstractAsyncContextManager
Dstdtypes.rst4879 * :class:`contextlib.AbstractAsyncContextManager`
/external/python/cpython3/Doc/whatsnew/
D3.7.rst833 :class:`~contextlib.AbstractAsyncContextManager`, and