File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 17
17
Iterable ,
18
18
Iterator ,
19
19
List ,
20
- Literal ,
21
20
Optional ,
22
21
Tuple ,
23
22
Generator ,
24
23
)
25
24
25
+
26
26
import nox
27
27
import nox .command
28
28
@@ -50,7 +50,7 @@ def _get_output(*args: str) -> str:
50
50
51
51
52
52
def _parse_supported_interpreter_version (
53
- python_impl : Literal ["cpython" , "pypy" ],
53
+ python_impl : str , # Literal["cpython", "pypy"], TODO update after 3.7 dropped
54
54
) -> Tuple [str , str ]:
55
55
output = _get_output ("cargo" , "metadata" , "--format-version=1" , "--no-deps" )
56
56
cargo_packages = json .loads (output )["packages" ]
@@ -64,7 +64,7 @@ def _parse_supported_interpreter_version(
64
64
65
65
66
66
def _supported_interpreter_versions (
67
- python_impl : Literal ["cpython" , "pypy" ],
67
+ python_impl : str , # Literal["cpython", "pypy"], TODO update after 3.7 dropped
68
68
) -> List [str ]:
69
69
min_version , max_version = _parse_supported_interpreter_version (python_impl )
70
70
major = int (min_version .split ("." )[0 ])
You can’t perform that action at this time.
0 commit comments