Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_contextlib_async.py2 from contextlib import asynccontextmanager, AbstractAsyncContextManager, AsyncExitStack
29 class DefaultEnter(AbstractAsyncContextManager):
40 class MissingAexit(AbstractAsyncContextManager):
53 self.assertTrue(issubclass(ManagerFromScratch, AbstractAsyncContextManager))
55 class DefaultEnter(AbstractAsyncContextManager):
59 self.assertTrue(issubclass(DefaultEnter, AbstractAsyncContextManager))
64 self.assertFalse(issubclass(NoneAenter, AbstractAsyncContextManager))
69 self.assertFalse(issubclass(NoneAexit, AbstractAsyncContextManager))
/external/python/cpython3/Lib/
Dcontextlib.py34 class AbstractAsyncContextManager(abc.ABC): class
49 if cls is AbstractAsyncContextManager:
165 AbstractAsyncContextManager):
523 class AsyncExitStack(_BaseExitStack, AbstractAsyncContextManager):
Dtyping.py1242 AsyncContextManager = _alias(contextlib.AbstractAsyncContextManager, T_co)
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst736 Add contextlib.AbstractAsyncContextManager. Patch by Jelle Zijlstra.
/external/python/cpython3/Doc/library/
Dcontextlib.rst32 .. class:: AbstractAsyncContextManager
Dtyping.rst680 A generic version of :class:`contextlib.AbstractAsyncContextManager`.
/external/python/cpython3/Doc/whatsnew/
D3.7.rst828 :class:`~contextlib.AbstractAsyncContextManager`, and