Searched refs:nullcontext (Results 1 – 9 of 9) sorted by relevance
10 from contextlib import _GeneratorContextManager, contextmanager, nullcontext645 with nullcontext(range(1, 5)) as (a, *b, c):
308 with nullcontext(c) as c_in:
1113 cm = contextlib.nullcontext()
658 class nullcontext(AbstractContextManager): class
29 from contextlib import contextmanager, nullcontext756 return nullcontext()
159 .. function:: nullcontext(enter_result=None)171 cm = contextlib.nullcontext()183 cm = nullcontext(file_or_path)
1820 from contextmanager import nullcontext as _nullcontext
431 Added *nullcontext* no-op context manager to contextlib. This provides a
828 The new :func:`~contextlib.nullcontext` is a simpler and faster no-op