Home
last modified time | relevance | path

Searched refs:AbstractContextManager (Results 1 – 11 of 11) sorted by relevance

/external/python/cpython3/Lib/
Dcontextlib.py15 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):
Dtyping.py1688 ContextManager = _alias(contextlib.AbstractContextManager, 1, name='ContextManager')
/external/python/cpython3/Lib/test/
Dtest_contextlib.py16 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))
Dtest_genericalias.py11 from contextlib import AbstractContextManager, AbstractAsyncContextManager
58 AbstractContextManager, AbstractAsyncContextManager,
/external/python/cpython3/Doc/library/
Dcontextlib.rst21 .. class:: AbstractContextManager
563 from contextlib import contextmanager, AbstractContextManager, ExitStack
565 class ResourceManager(AbstractContextManager):
Dtyping.rst1499 A generic version of :class:`contextlib.AbstractContextManager`.
1505 :class:`contextlib.AbstractContextManager` now supports ``[]``. See
Dstdtypes.rst4878 * :class:`contextlib.AbstractContextManager`
/external/python/cpython3/Misc/NEWS.d/
D3.6.2rc1.rst432 contextlib.AbstractContextManager now supports anti-registration by setting
D3.6.0a1.rst1303 Introduce contextlib.AbstractContextManager and typing.ContextManager.
D3.7.0a1.rst2708 contextlib.AbstractContextManager now supports anti-registration by setting
/external/python/cpython3/Doc/whatsnew/
D3.6.rst961 The :class:`contextlib.AbstractContextManager` class has been added to
1611 representing :class:`contextlib.AbstractContextManager`.