Skip to content

Commit a63dcfd

Browse files
author
Daniil Dumchenko
committed
Fix: comments
1 parent 1d9a5c0 commit a63dcfd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tools/build/verify_ensurepip_wheels.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@
2020
GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
2121

2222

23-
def print_notice(file_path: Path, message: str) -> None:
23+
def print_notice(file_path: str | Path, message: str) -> None:
2424
if GITHUB_ACTIONS:
2525
message = f"::notice file={file_path}::{message}"
2626
print(message, end="\n\n")
2727

2828

29-
def print_error(file_path: Path, message: str) -> None:
29+
def print_error(file_path: str | Path, message: str) -> None:
3030
if GITHUB_ACTIONS:
3131
message = f"::error file={file_path}::{message}"
3232
print(message, end="\n\n")
@@ -40,7 +40,7 @@ def verify_wheel(package_name: str) -> bool:
4040
for p in package_paths:
4141
print_error(p, f"Found more than one wheel for package {package_name}.")
4242
else:
43-
print_error(Path(), f"Could not find a {package_name} wheel on disk.")
43+
print_error("", f"Could not find a {package_name} wheel on disk.")
4444
return False
4545

4646
package_path = package_paths[0]

0 commit comments

Comments
 (0)