diff options
author | 2023-03-02 22:31:58 +0000 | |
---|---|---|
committer | 2023-03-02 22:57:53 +0000 | |
commit | 247e6a3c7b93a27a49f851bf0740016ad4f4fb3f (patch) | |
tree | 1a2d53014b394a9793d5a04ffca2f29106c2de17 /docs/pages | |
parent | Don't override the default list of ignored flake8 rules (diff) |
Explicitly set the stack level of the warnings.warn call
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.
Diffstat (limited to 'docs/pages')
0 files changed, 0 insertions, 0 deletions