Skip to content

Commit

Permalink
Use Python 3.8-compatible type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
tttapa committed May 26, 2024
1 parent d890f34 commit ad43fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/py_build_cmake/config/cli_override.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from dataclasses import dataclass
from pathlib import Path
from typing import cast
from typing import List, cast

from lark import Lark, Token, Transformer, v_args

Expand Down Expand Up @@ -50,4 +50,4 @@ def parse_cli(s: str) -> CLIOption:


def parse_file(s: str) -> list[CLIOption]:
return cast(list[CLIOption], file_parser.parse(s))
return cast(List[CLIOption], file_parser.parse(s))

0 comments on commit ad43fcb

Please sign in to comment.