Searched refs:nullcontext (Results 1 – 13 of 13) sorted by relevance
/third_party/mesa3d/.gitlab-ci/tests/lava/ |
D | helpers.py | 1 from contextlib import nullcontext as does_not_raise
|
/third_party/python/Lib/test/ |
D | test_contextlib_async.py | 4 AsyncExitStack, nullcontext, aclosing, contextmanager) 597 async with nullcontext(c) as c_in:
|
D | test_with.py | 10 from contextlib import _GeneratorContextManager, contextmanager, nullcontext 645 with nullcontext(range(1, 5)) as (a, *b, c):
|
D | test_contextlib.py | 314 with nullcontext(c) as c_in:
|
D | test_concurrent_futures.py | 1156 cm = contextlib.nullcontext()
|
/third_party/mesa3d/.gitlab-ci/tests/ |
D | test_lava_job_submitter.py | 9 from contextlib import nullcontext as does_not_raise
|
/third_party/python/Doc/library/ |
D | contextlib.rst | 219 .. function:: nullcontext(enter_result=None) 231 cm = contextlib.nullcontext() 243 cm = nullcontext(file_or_path) 257 cm = nullcontext(session)
|
/third_party/python/Lib/ |
D | contextlib.py | 721 class nullcontext(AbstractContextManager, AbstractAsyncContextManager): class
|
D | ast.py | 29 from contextlib import contextmanager, nullcontext 759 return nullcontext()
|
/third_party/python/Misc/NEWS.d/ |
D | 3.10.0a3.rst | 824 Add async context manager support for contextlib.nullcontext.
|
D | 3.7.0a3.rst | 431 Added *nullcontext* no-op context manager to contextlib. This provides a
|
/third_party/python/Doc/whatsnew/ |
D | 3.10.rst | 968 Add asynchronous context manager support to :func:`contextlib.nullcontext`.
|
D | 3.7.rst | 829 The new :func:`~contextlib.nullcontext` is a simpler and faster no-op
|