diff options
Diffstat (limited to 'pylint/checkers/deprecated.py')
-rw-r--r-- | pylint/checkers/deprecated.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pylint/checkers/deprecated.py b/pylint/checkers/deprecated.py index 0bbad05ee..54254340d 100644 --- a/pylint/checkers/deprecated.py +++ b/pylint/checkers/deprecated.py @@ -4,6 +4,7 @@ """Checker mixin for deprecated functionality.""" import abc +from typing import Any import astroid @@ -19,6 +20,14 @@ class DeprecatedMixin(metaclass=abc.ABCMeta): A class imlementing mixin must define "deprecated-method" Message. """ + msgs: Any = { + "W1505": ( + "Using deprecated method %s()", + "deprecated-method", + "The method is marked as deprecated and will be removed in the future.", + ), + } + @abc.abstractmethod def deprecated_methods(self): """Callback returning the deprecated methods/functions. |