8000 Adding a nice deprecation warning for the spelling fix · pylint-dev/pylint-plugin-utils@e48ea40 · GitHub
[go: up one dir, main page]

Skip to content

Commit e48ea40

Browse files
committed
Adding a nice deprecation warning for the spelling fix
1 parent cad27a3 commit e48ea40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pylint_plugin_utils/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ def __exit__(self, exc_type, exc_val, exc_tb):
8181

8282

8383
def supress_message(linter, checker_method, message_id, test_func):
84+
import warnings
85+
warnings.warn("'supress_message' has been deprecated in favour of the correctly-spelled 'suppress_message'",
86+
DeprecationWarning)
8487
return suppress_message(linter, checker_method, message_id, test_func)
8588

8689

0 commit comments

Comments
 (0)
0