Skip to content

Commit fa15d90

Browse files
authored
fix 3.7 builds (#4963)
1 parent b726d6a commit fa15d90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
Iterable,
1818
Iterator,
1919
List,
20-
Literal,
2120
Optional,
2221
Tuple,
2322
Generator,
2423
)
2524

25+
2626
import nox
2727
import nox.command
2828

@@ -50,7 +50,7 @@ def _get_output(*args: str) -> str:
5050

5151

5252
def _parse_supported_interpreter_version(
53-
python_impl: Literal["cpython", "pypy"],
53+
python_impl: str, # Literal["cpython", "pypy"], TODO update after 3.7 dropped
5454
) -> Tuple[str, str]:
5555
output = _get_output("cargo", "metadata", "--format-version=1", "--no-deps")
5656
cargo_packages = json.loads(output)["packages"]
@@ -64,7 +64,7 @@ def _parse_supported_interpreter_version(
6464

6565

6666
def _supported_interpreter_versions(
67-
python_impl: Literal["cpython", "pypy"],
67+
python_impl: str, # Literal["cpython", "pypy"], TODO update after 3.7 dropped
6868
) -> List[str]:
6969
min_version, max_version = _parse_supported_interpreter_version(python_impl)
7070
major = int(min_version.split(".")[0])

0 commit comments

Comments
 (0)