New submission from Zbigniew Siciarz <zbign...@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@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue45568>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to