New submission from Zbigniew Siciarz :
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@python
components: Documentation
messages: 404739
nosy: docs@python, zsiciarz
priority: normal
severity: normal
status: open
title: @asynccontextmanager is missing in decorator usage example
type: enhancement
versions: Python 3.10
___
Python tracker
<https://bugs.python.org/issue45568>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com