diff options
Diffstat (limited to 'examples/custom_raw.py')
-rw-r--r-- | examples/custom_raw.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/custom_raw.py b/examples/custom_raw.py index 090f87ea8..68e685504 100644 --- a/examples/custom_raw.py +++ b/examples/custom_raw.py @@ -1,3 +1,5 @@ +from __future__ import annotations + from typing import TYPE_CHECKING from astroid import nodes @@ -37,7 +39,7 @@ class MyRawChecker(BaseRawFileChecker): self.add_message("backslash-line-continuation", line=lineno) -def register(linter: "PyLinter") -> None: +def register(linter: PyLinter) -> None: """This required method auto registers the checker during initialization. :param linter: The linter to register the checker to. |