diff options
Diffstat (limited to 'pylint/checkers/base_checker.py')
-rw-r--r-- | pylint/checkers/base_checker.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pylint/checkers/base_checker.py b/pylint/checkers/base_checker.py index c8e65c87a..fd01bfaa1 100644 --- a/pylint/checkers/base_checker.py +++ b/pylint/checkers/base_checker.py @@ -7,6 +7,7 @@ from __future__ import annotations import functools import warnings from inspect import cleandoc +from tokenize import TokenInfo from typing import TYPE_CHECKING, Any from astroid import nodes @@ -210,6 +211,6 @@ class BaseChecker(_ArgumentsProvider): class BaseTokenChecker(BaseChecker): """Base class for checkers that want to have access to the token stream.""" - def process_tokens(self, tokens): + def process_tokens(self, tokens: list[TokenInfo]) -> None: """Should be overridden by subclasses.""" raise NotImplementedError() |