Skip to content
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

Print full warnings stack trace #2217

Closed
giampaolo opened this issue Mar 28, 2023 · 0 comments
Closed

Print full warnings stack trace #2217

giampaolo opened this issue Mar 28, 2023 · 0 comments

Comments

@giampaolo
Copy link
Owner

giampaolo commented Mar 28, 2023

Summary

  • OS: all
  • Type: core

Description

<<The warn method from the warnings module uses a stacklevel of 1 by default. This will only show a stack trace for the line on which the warn method is called. It is therefore recommended to use a stacklevel of 2 or greater to provide more information to the user.>>
This was catched by https://github.com/PyCQA/flake8-bugbear and got fixed in: f221655

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

No branches or pull requests

1 participant