diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-01-21 12:49:49 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-21 12:49:49 (GMT) |
commit | 38768e4cdd1c4b6e03702da8a94e1c22479d6ed3 (patch) | |
tree | 59b76ce82f250134c83eb988d0525a40a22dbe0a /Doc | |
parent | 96c15b1c8d03db5b7b5b719214d9d156b317ba9d (diff) | |
download | cpython-38768e4cdd1c4b6e03702da8a94e1c22479d6ed3.zip cpython-38768e4cdd1c4b6e03702da8a94e1c22479d6ed3.tar.gz cpython-38768e4cdd1c4b6e03702da8a94e1c22479d6ed3.tar.bz2 |
gh-114384: Align sys.set_asyncgen_hooks signature in docs to reflect implementation (#114385)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sys.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index c371663..abf2c39 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -1655,7 +1655,7 @@ always available. ``'opcode'`` event type added; :attr:`~frame.f_trace_lines` and :attr:`~frame.f_trace_opcodes` attributes added to frames -.. function:: set_asyncgen_hooks(firstiter, finalizer) +.. function:: set_asyncgen_hooks([firstiter] [, finalizer]) Accepts two optional keyword arguments which are callables that accept an :term:`asynchronous generator iterator` as an argument. The *firstiter* |