diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-03-21 09:00:23 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-03-21 09:17:44 +0100 |
commit | 95a82dc7ef54070e31dcecf56f2ded5348e3dfb7 (patch) | |
tree | 8418c2e5fe83438729e27d46863899f66b2e9a56 /pylint/config | |
parent | d4a8b028d6b982e4756ab0daa7cbea137c296db7 (diff) | |
download | pylint-git-95a82dc7ef54070e31dcecf56f2ded5348e3dfb7.tar.gz |
Add explicit 'stack_level' keyword in Deprecation/User warnings
Diffstat (limited to 'pylint/config')
-rw-r--r-- | pylint/config/deprecation_actions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pylint/config/deprecation_actions.py b/pylint/config/deprecation_actions.py index ceef200a7..233f3377e 100644 --- a/pylint/config/deprecation_actions.py +++ b/pylint/config/deprecation_actions.py @@ -104,4 +104,5 @@ class _NewNamesAction(argparse._StoreAction): f"{self.option_strings[0]} has been deprecated. Please look into " f"using any of the following options: {', '.join(self.new_names)}.", DeprecationWarning, + stacklevel=2, ) |