This commit is contained in:
Andrej730
2024-09-20 11:34:05 +05:00
parent d7adec3d54
commit 9953ce1b39
4 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import os
import sys
def find_whl_files(directory):
def find_whl_files(directory: str) -> list[str]:
whl_files = []
for root, dirs, files in os.walk(directory):
for file in files:
@@ -12,7 +12,7 @@ def find_whl_files(directory):
return whl_files
def update_pyproject_toml(pyproject_path, whl_files):
def update_pyproject_toml(pyproject_path: str, whl_files: list[str]) -> None:
with open(pyproject_path, "a") as f:
f.write("\nwheels = [\n")
for whl in whl_files: