Docstring nit

This commit is contained in:
Łukasz Langa 2019-10-28 13:00:31 +01:00
parent 53808e3902
commit 58fd7885cd
No known key found for this signature in database
GPG Key ID: B26995E310250568

View File

@ -3780,8 +3780,10 @@ def dump_to_file(*output: str) -> str:
@contextmanager @contextmanager
def nullcontext() -> Iterator[None]: def nullcontext() -> Iterator[None]:
"""Return context manager that does nothing. """Return an empty context manager.
Similar to `nullcontext` from python 3.7"""
To be used like `nullcontext` in Python 3.7.
"""
yield yield