diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2022-04-20 19:48:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-20 19:48:13 +0200 |
commit | 000c6f8985ce6b6d9c7e45e63d7a65b4eda24897 (patch) | |
tree | 1cad94782b9a439429ce36bc8a974ca13238d8ab /pylint/interfaces.py | |
parent | 4b73e81df60db3a5e3706124185a3d37a363f7e7 (diff) | |
download | pylint-git-000c6f8985ce6b6d9c7e45e63d7a65b4eda24897.tar.gz |
Deprecate all interfaces in 'pylint.interfaces' (#6412)
Diffstat (limited to 'pylint/interfaces.py')
-rw-r--r-- | pylint/interfaces.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pylint/interfaces.py b/pylint/interfaces.py index 39e357f65..23e254cbd 100644 --- a/pylint/interfaces.py +++ b/pylint/interfaces.py @@ -51,6 +51,13 @@ CONFIDENCE_LEVEL_NAMES = [i.name for i in CONFIDENCE_LEVELS] class Interface: """Base class for interfaces.""" + def __init__(self) -> None: + warnings.warn( + "Interface and all of its subclasses have been deprecated " + "and will be removed in pylint 3.0.", + DeprecationWarning, + ) + @classmethod def is_implemented_by(cls, instance): with warnings.catch_warnings(): |