Searched refs:AbstractAsyncContextManager (Results 1 – 9 of 9) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_contextlib_async.py | 2 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))
|
D | test_genericalias.py | 11 from contextlib import AbstractContextManager, AbstractAsyncContextManager 58 AbstractContextManager, AbstractAsyncContextManager,
|
/external/python/cpython3/Lib/ |
D | contextlib.py | 37 class AbstractAsyncContextManager(abc.ABC): class 54 if cls is AbstractAsyncContextManager: 170 AbstractAsyncContextManager): 525 class AsyncExitStack(_BaseExitStack, AbstractAsyncContextManager):
|
D | typing.py | 1689 AsyncContextManager = _alias(contextlib.AbstractAsyncContextManager, 1, name='AsyncContextManager')
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0a4.rst | 735 Add contextlib.AbstractAsyncContextManager. Patch by Jelle Zijlstra.
|
/external/python/cpython3/Doc/library/ |
D | typing.rst | 1510 A generic version of :class:`contextlib.AbstractAsyncContextManager`. 1516 :class:`contextlib.AbstractAsyncContextManager` now supports ``[]``. See
|
D | contextlib.rst | 32 .. class:: AbstractAsyncContextManager
|
D | stdtypes.rst | 4879 * :class:`contextlib.AbstractAsyncContextManager`
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.7.rst | 833 :class:`~contextlib.AbstractAsyncContextManager`, and
|