-
-
Notifications
You must be signed in to change notification settings - Fork 31.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting None
to skip_file_prefixes
of warnings.warn()
gets error
#125818
Comments
This is probably just a typo in the docs. The default value for that parameter as actually an empty tuple: Lines 302 to 316 in 4848b0b
(It's also the case for the C module) The docs mention it too:
Would you like to open a PR to fix the method signature in the docs? |
Maybe the task of repairing this document can be entrusted to me. |
…n warnings docs (GH-125823) Change documentation
…xes` in warnings docs (pythonGH-125823) Change documentation (cherry picked from commit d467d92) Co-authored-by: RUANG (James Roy) <[email protected]>
…xes` in warnings docs (pythonGH-125823) Change documentation (cherry picked from commit d467d92) Co-authored-by: RUANG (James Roy) <[email protected]>
Thanks for the report, Kai, and thanks for the PR, James. |
…xes` in warnings docs (pythonGH-125823) Change documentation
…xes` in warnings docs (pythonGH-125823) Change documentation
Bug report
Bug description:
The doc of
warnings.warn()
saysskip_file_prefixes
isNone
by default as shown below:But, setting
None
toskip_file_prefixes
gets the error as shown below:CPython versions tested on:
3.13
Operating systems tested on:
Windows
Linked PRs
skip_file_prefixes
in warnings docs #125823skip_file_prefixes
in warnings docs (GH-125823) #126216skip_file_prefixes
in warnings docs (GH-125823) #126217The text was updated successfully, but these errors were encountered: