-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
logging docstrings should use bool instead of int for exc_info #114494
Comments
Thank you for the report. The line in question has last been changed 22 years ago, before the introduction of the The docstrings should probably be updated, though. Cc @gvanrossum |
I know. And at first True and False were just names bound to 1 and 0, iirc. :) |
I agree this should be fixed in CPython. I'll transfer the issue. |
Assign me |
There are 6 lines in the file that needs to be changed. Each for different level of logging. |
…14558) (cherry picked from commit 07236f5) Co-authored-by: Tristan Pank <tristanpank@gmail.com>
…14558) (cherry picked from commit 07236f5) Co-authored-by: Tristan Pank <tristanpank@gmail.com>
…14558) (cherry picked from commit 07236f5) Co-authored-by: Tristan Pank <tristanpank@gmail.com>
…14558) (cherry picked from commit 07236f5) Co-authored-by: Tristan Pank <tristanpank@gmail.com>
…o (GH=114558) (cherry picked from commit 07236f5) Co-authored-by: Tristan Pank <tristanpank@gmail.com>
The documentation passes an integer as the
exc_info
parameter:cpython/Lib/logging/__init__.py
Line 1496 in 8edc802
But the annotation doesn't allow that.
https://github.com/python/typeshed/blob/2168ab5ff4e40c37505b3e5048944603b71a857d/stdlib/logging/__init__.pyi#L66-L67
Linked PRs
The text was updated successfully, but these errors were encountered: