Home
last modified time | relevance | path

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

/third_party/python/Lib/test/
Dtest_contextlib_async.py3 asynccontextmanager, AbstractAsyncContextManager,
31 class DefaultEnter(AbstractAsyncContextManager):
64 class MissingAexit(AbstractAsyncContextManager):
77 self.assertTrue(issubclass(ManagerFromScratch, AbstractAsyncContextManager))
79 class DefaultEnter(AbstractAsyncContextManager):
83 self.assertTrue(issubclass(DefaultEnter, AbstractAsyncContextManager))
88 self.assertFalse(issubclass(NoneAenter, AbstractAsyncContextManager))
93 self.assertFalse(issubclass(NoneAexit, AbstractAsyncContextManager))
Dtest_genericalias.py12 from contextlib import AbstractContextManager, AbstractAsyncContextManager
59 AbstractContextManager, AbstractAsyncContextManager,
/third_party/python/Lib/
Dcontextlib.py37 class AbstractAsyncContextManager(abc.ABC): class
54 if cls is AbstractAsyncContextManager:
189 AbstractAsyncContextManager,
343 class aclosing(AbstractAsyncContextManager):
588 class AsyncExitStack(_BaseExitStack, AbstractAsyncContextManager):
721 class nullcontext(AbstractContextManager, AbstractAsyncContextManager):
Dtyping.py2121 AsyncContextManager = _alias(contextlib.AbstractAsyncContextManager, 1, name='AsyncContextManager')
/third_party/python/Misc/NEWS.d/
D3.7.0a4.rst735 Add contextlib.AbstractAsyncContextManager. Patch by Jelle Zijlstra.
/third_party/python/Doc/library/
Dtyping.rst1877 A generic version of :class:`contextlib.AbstractAsyncContextManager`.
1883 :class:`contextlib.AbstractAsyncContextManager` now supports ``[]``. See
Dcontextlib.rst32 .. class:: AbstractAsyncContextManager
Dstdtypes.rst4935 * :class:`contextlib.AbstractAsyncContextManager`
/third_party/python/Doc/whatsnew/
D3.7.rst834 :class:`~contextlib.AbstractAsyncContextManager`, and