Skip to content

Commit

Permalink
Update ignore directives for newer mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
greenc-FNAL committed Nov 29, 2023
1 parent e8fc71e commit 8a4e6c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/spack/spack/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ def tokenize(text: str) -> Iterator[Token]:
match: Optional[Match] = None
for match in iter(scanner.match, None):
yield Token(
TokenType.__members__[match.lastgroup], # type: ignore[attr-defined]
match.group(), # type: ignore[attr-defined]
match.start(), # type: ignore[attr-defined]
match.end(), # type: ignore[attr-defined]
TokenType.__members__[match.lastgroup], # type: ignore[index,union-attr]
match.group(), # type: ignore[union-attr]
match.start(), # type: ignore[union-attr]
match.end(), # type: ignore[union-attr]
)

if match is None and not text:
Expand Down

0 comments on commit 8a4e6c0

Please sign in to comment.