summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/custom_raw.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py
index 365e9b7fa..1cfeae3f9 100644
--- a/examples/custom_raw.py
+++ b/examples/custom_raw.py
@@ -2,20 +2,17 @@ from typing import TYPE_CHECKING
from astroid import nodes
-from pylint.checkers import BaseChecker
-from pylint.interfaces import IRawChecker
+from pylint.checkers import BaseRawFileChecker
if TYPE_CHECKING:
from pylint.lint import PyLinter
-class MyRawChecker(BaseChecker):
+class MyRawChecker(BaseRawFileChecker):
"""Check for line continuations with '\' instead of using triple
quoted string or parenthesis
"""
- __implements__ = IRawChecker
-
name = "custom_raw"
msgs = {
"W9901": (