Searched refs:AbstractContextManager (Results 1 – 9 of 9) sorted by relevance
14 class AbstractContextManager(abc.ABC): class29 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):
1241 ContextManager = _alias(contextlib.AbstractContextManager, T_co)
17 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))
21 .. class:: AbstractContextManager563 from contextlib import contextmanager, AbstractContextManager, ExitStack565 class ResourceManager(AbstractContextManager):
674 A generic version of :class:`contextlib.AbstractContextManager`.
432 contextlib.AbstractContextManager now supports anti-registration by setting
1304 Introduce contextlib.AbstractContextManager and typing.ContextManager.
2713 contextlib.AbstractContextManager now supports anti-registration by setting
961 The :class:`contextlib.AbstractContextManager` class has been added to1611 representing :class:`contextlib.AbstractContextManager`.