https://github.com/python/cpython/commit/4dd82194f4a0e48a94191655e571b3aad1c... commit: 4dd82194f4a0e48a94191655e571b3aad1c4a22a branch: main author: Zbigniew Siciarz <zbigniew@siciarz.net> committer: miss-islington <31488909+miss-islington@users.noreply.github.com> date: 2021-11-25T04:30:48-08:00 summary: bpo-45568: Actually use @asynccontextmanager in usage example (GH-29151) Automerge-Triggered-By: GH:asvetlov files: M Doc/library/contextlib.rst diff --git a/Doc/library/contextlib.rst b/Doc/library/contextlib.rst index a800a0b8dee4b..bb93088b3429e 100644 --- a/Doc/library/contextlib.rst +++ b/Doc/library/contextlib.rst @@ -130,7 +130,9 @@ Functions and classes provided: either as decorators or with :keyword:`async with` statements:: import time + from contextlib import asynccontextmanager + @asynccontextmanager async def timeit(): now = time.monotonic() try: