summaryrefslogtreecommitdiff
path: root/pylint/interfaces.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-20 19:48:13 +0200
committerGitHub <noreply@github.com>2022-04-20 19:48:13 +0200
commit000c6f8985ce6b6d9c7e45e63d7a65b4eda24897 (patch)
tree1cad94782b9a439429ce36bc8a974ca13238d8ab /pylint/interfaces.py
parent4b73e81df60db3a5e3706124185a3d37a363f7e7 (diff)
downloadpylint-git-000c6f8985ce6b6d9c7e45e63d7a65b4eda24897.tar.gz
Deprecate all interfaces in 'pylint.interfaces' (#6412)
Diffstat (limited to 'pylint/interfaces.py')
-rw-r--r--pylint/interfaces.py7
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():