`sys.set_asyncgen_hooks` docs are not correct about its signature · Issue #114384 · python/cpython · GitHub
Skip to content

sys.set_asyncgen_hooks docs are not correct about its signature #114384

Description

@sobolevn

Bug report

Refs #103132 (comment)

The signature is set_asyncgen_hooks(firstiter=<unrepresentable>, finalizer=<unrepresentable>).
Docs say that it is: set_asyncgen_hooks(firstiter, finalizer)
Docstring say that it is: set_asyncgen_hooks(* [, firstiter] [, finalizer])

It should be: set_asyncgen_hooks([firstiter] [, finalizer]) (I guess)

Linked PRs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsDocumentation in the Doc dirinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions