-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
Closed
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
Documentation
Looking at the online python docs at https://docs.python.org/3.11/library/warnings.html#warnings.warn. The function call is listed on the site like this:
warnings.warn(message, category=None, stacklevel=1, source=None, \*, skip_file_prefixes=None)As far as I know (my apologies if I am very wrong), \* isn't a valid argument, and it should just be *.
Best guess is that since the actual code (here) has a linebreak in the arguments, that linebreak got formatted for the docs as a \*.
I saw this all come up in this stackoverflow question where other people thought it all through, i'm just posting the issue.
This seems to be new in 3.12
Linked PRs
Metadata
Metadata
Assignees
Labels
3.12only security fixesonly security fixes3.13bugs and security fixesbugs and security fixesdocsDocumentation in the Doc dirDocumentation in the Doc direasytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error