Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Dcontextlib.py14 class AbstractContextManager(abc.ABC): class
29 if cls is AbstractContextManager:
97 AbstractContextManager,
276 class closing(AbstractContextManager):
301 class _RedirectStream(AbstractContextManager):
341 class suppress(AbstractContextManager):
454 class ExitStack(_BaseExitStack, AbstractContextManager):
659 class nullcontext(AbstractContextManager):
Dtyping.py1241 ContextManager = _alias(contextlib.AbstractContextManager, T_co)
/external/python/cpython3/Lib/test/
Dtest_contextlib.py17 class DefaultEnter(AbstractContextManager):
25 class MissingExit(AbstractContextManager):
38 self.assertTrue(issubclass(ManagerFromScratch, AbstractContextManager))
40 class DefaultEnter(AbstractContextManager):
44 self.assertTrue(issubclass(DefaultEnter, AbstractContextManager))
49 self.assertFalse(issubclass(NoEnter, AbstractContextManager))
54 self.assertFalse(issubclass(NoExit, AbstractContextManager))
/external/python/cpython3/Doc/library/
Dcontextlib.rst21 .. class:: AbstractContextManager
563 from contextlib import contextmanager, AbstractContextManager, ExitStack
565 class ResourceManager(AbstractContextManager):
Dtyping.rst674 A generic version of :class:`contextlib.AbstractContextManager`.
/external/python/cpython3/Misc/NEWS.d/
D3.6.2rc1.rst432 contextlib.AbstractContextManager now supports anti-registration by setting
D3.6.0a1.rst1304 Introduce contextlib.AbstractContextManager and typing.ContextManager.
D3.7.0a1.rst2713 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`.