Closed
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