summaryrefslogtreecommitdiff
path: root/pylint/config
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-21 09:00:23 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2023-03-21 09:17:44 +0100
commit95a82dc7ef54070e31dcecf56f2ded5348e3dfb7 (patch)
tree8418c2e5fe83438729e27d46863899f66b2e9a56 /pylint/config
parentd4a8b028d6b982e4756ab0daa7cbea137c296db7 (diff)
downloadpylint-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.py1
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,
)