Method: pylint.extensions.check_elif.ElseifUsedChecker.process_tokens
Calls: 18, Exceptions: 0, Paths: 1Back
Path 1: 18 calls (1.0)
list (18)
1def process_tokens(self, tokens: list[TokenInfo]) -> None:
2 """Process tokens and look for 'if' or 'elif'."""
3 self._elifs = {
4 begin: token for _, token, begin, _, _ in tokens if token in {"elif", "if"}
5 }