Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_typing.py2772 from typing import AsyncContextManager
2829 async def g_with(am: AsyncContextManager[int]):
3576 self.assertIsInstance(ACM(), typing.AsyncContextManager)
3577 self.assertNotIsInstance(NotACM(), typing.AsyncContextManager)
3583 self.assertNotIsInstance(cm, typing.AsyncContextManager)
3584 self.assertEqual(typing.AsyncContextManager[int].__args__, (int,))
3586 isinstance(42, typing.AsyncContextManager[int])
3588 typing.AsyncContextManager[int, str]
/external/python/cpython3/Misc/NEWS.d/
D3.7.0b5.rst505 Add missing documentation for ``typing.AsyncContextManager``.
D3.6.6rc1.rst509 Add missing documentation for ``typing.AsyncContextManager``.
D3.6.2rc1.rst272 Updates to typing module: Add generic AsyncContextManager, add support for
D3.5.4rc1.rst390 Updates to typing module: Add generic AsyncContextManager, add support for
D3.7.0a1.rst2449 Updates to typing module: Add generic AsyncContextManager, add support for
D3.8.0a1.rst6459 Add missing documentation for ``typing.AsyncContextManager``.
/external/python/cpython3/Lib/
Dtyping.py1689 AsyncContextManager = _alias(contextlib.AbstractAsyncContextManager, 1, name='AsyncContextManager') variable
/external/python/cpython3/Doc/library/
Dunittest.mock-examples.rst305 >>> class AsyncContextManager:
311 >>> mock_instance = MagicMock(AsyncContextManager()) # AsyncMock also works here
Dtyping.rst1508 .. class:: AsyncContextManager(Generic[T_co])
/external/python/cpython3/Doc/reference/
Ddatamodel.rst2793 class AsyncContextManager: