summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-19 22:51:13 +0200
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-19 23:26:39 +0200
commit5e76bff35db7ddd3eac443efb58b7f329b423e33 (patch)
tree17762156daeca435d333d81400f0984676c44aae /examples
parentfb7d1bd72224a2c914b095173e6d3ca6b217feeb (diff)
downloadpylint-git-5e76bff35db7ddd3eac443efb58b7f329b423e33.tar.gz
Remove ``IAstroidChecker`` from ``__implements__``
Diffstat (limited to 'examples')
-rw-r--r--examples/custom.py5
-rw-r--r--examples/deprecation_checker.py2
2 files changed, 0 insertions, 7 deletions
diff --git a/examples/custom.py b/examples/custom.py
index a647f8518..b05954d45 100644
--- a/examples/custom.py
+++ b/examples/custom.py
@@ -3,7 +3,6 @@ from typing import TYPE_CHECKING
from astroid import nodes
from pylint.checkers import BaseChecker
-from pylint.interfaces import IAstroidChecker
if TYPE_CHECKING:
from pylint.lint import PyLinter
@@ -14,10 +13,6 @@ if TYPE_CHECKING:
class MyAstroidChecker(BaseChecker):
"""Add class member attributes to the class local's dictionary."""
- # This class variable defines the type of checker that we are implementing.
- # In this case, we are implementing an AST checker.
- __implements__ = IAstroidChecker
-
# The name defines a custom section of the config for this checker.
name = "custom"
# This class variable declares the messages (ie the warnings and errors)
diff --git a/examples/deprecation_checker.py b/examples/deprecation_checker.py
index db4596096..52244edf6 100644
--- a/examples/deprecation_checker.py
+++ b/examples/deprecation_checker.py
@@ -43,7 +43,6 @@ from __future__ import annotations
from typing import TYPE_CHECKING
from pylint.checkers import BaseChecker, DeprecatedMixin
-from pylint.interfaces import IAstroidChecker
if TYPE_CHECKING:
from pylint.lint import PyLinter
@@ -57,7 +56,6 @@ class DeprecationChecker(DeprecatedMixin, BaseChecker):
# DeprecatedMixin class is overriding attributes of BaseChecker hence must be specified *before* BaseChecker
# in list of base classes.
- __implements__ = (IAstroidChecker,)
# The name defines a custom section of the config for this checker.
name = "deprecated"