Searched refs:AbstractContextManager (Results 1 – 11 of 11) sorted by relevance
/external/python/cpython3/Lib/ |
D | contextlib.py | 15 class AbstractContextManager(abc.ABC): class 32 if cls is AbstractContextManager: 102 AbstractContextManager, 281 class closing(AbstractContextManager): 306 class _RedirectStream(AbstractContextManager): 346 class suppress(AbstractContextManager): 456 class ExitStack(_BaseExitStack, AbstractContextManager): 658 class nullcontext(AbstractContextManager):
|
D | typing.py | 1688 ContextManager = _alias(contextlib.AbstractContextManager, 1, name='ContextManager')
|
/external/python/cpython3/Lib/test/ |
D | test_contextlib.py | 16 class DefaultEnter(AbstractContextManager): 24 class MissingExit(AbstractContextManager): 37 self.assertTrue(issubclass(ManagerFromScratch, AbstractContextManager)) 39 class DefaultEnter(AbstractContextManager): 43 self.assertTrue(issubclass(DefaultEnter, AbstractContextManager)) 48 self.assertFalse(issubclass(NoEnter, AbstractContextManager)) 53 self.assertFalse(issubclass(NoExit, AbstractContextManager))
|
D | test_genericalias.py | 11 from contextlib import AbstractContextManager, AbstractAsyncContextManager 58 AbstractContextManager, AbstractAsyncContextManager,
|
/external/python/cpython3/Doc/library/ |
D | contextlib.rst | 21 .. class:: AbstractContextManager 563 from contextlib import contextmanager, AbstractContextManager, ExitStack 565 class ResourceManager(AbstractContextManager):
|
D | typing.rst | 1499 A generic version of :class:`contextlib.AbstractContextManager`. 1505 :class:`contextlib.AbstractContextManager` now supports ``[]``. See
|
D | stdtypes.rst | 4878 * :class:`contextlib.AbstractContextManager`
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.6.2rc1.rst | 432 contextlib.AbstractContextManager now supports anti-registration by setting
|
D | 3.6.0a1.rst | 1303 Introduce contextlib.AbstractContextManager and typing.ContextManager.
|
D | 3.7.0a1.rst | 2708 contextlib.AbstractContextManager now supports anti-registration by setting
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.6.rst | 961 The :class:`contextlib.AbstractContextManager` class has been added to 1611 representing :class:`contextlib.AbstractContextManager`.
|