[New-bugs-announce] [issue45568] @asynccontextmanager is missing in decorator usage example
Zbigniew Siciarz
report at bugs.python.org
Fri Oct 22 05:51:42 EDT 2021
New submission from Zbigniew Siciarz <zbigniew at siciarz.net>:
The docs of contextlib.asynccontextmanager provide an example how to use it as a decorator (https://docs.python.org/3/library/contextlib.html#contextlib.asynccontextmanager). However, the example snippet of code doesn't decorate the timeit() function with @asynccontextmanager, leading to reader confusion.
----------
assignee: docs at python
components: Documentation
messages: 404739
nosy: docs at python, zsiciarz
priority: normal
severity: normal
status: open
title: @asynccontextmanager is missing in decorator usage example
type: enhancement
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45568>
_______________________________________
More information about the New-bugs-announce
mailing list