Skip to content

Commit 2255d32

Browse files
committed
fix param
1 parent 9f61a09 commit 2255d32

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

validate.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ def _py_exe(major: int, minor: int) -> str:
4646
return f"python{major}.{minor}"
4747

4848

49-
def _pythons_to_check(tags: frozenset[Tag], package: Package) -> tuple[str, ...]:
49+
def _pythons_to_check(
50+
tags: frozenset[Tag], package: Package | None = None
51+
) -> tuple[str, ...]:
5052
tag_compatible_pythons: set[str] = set()
5153
for tag in tags:
5254
if tag.abi == "abi3" and tag.interpreter.startswith("cp"):
@@ -69,6 +71,9 @@ def _pythons_to_check(tags: frozenset[Tag], package: Package) -> tuple[str, ...]
6971
if not tag_compatible_pythons:
7072
raise AssertionError(f"no interpreters found for {tags}")
7173

74+
if not package:
75+
return tuple(sorted(tag_compatible_pythons))
76+
7277
package_compatible_pythons: set[str] = set()
7378
for python_exe in tag_compatible_pythons:
7479
py_version_str = python_exe.replace("python", "")

0 commit comments

Comments
 (0)