Skip to content

Commit 43ad815

Browse files
committed
Update type annotations
1 parent 9aaa26f commit 43ad815

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

add_to_pydotorg.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def run_cmd(
9393

9494
def get_file_descriptions(
9595
release: str,
96-
) -> list[tuple[re.Pattern[str], tuple[str, int, bool, str]]]:
96+
) -> list[tuple[re.Pattern[str], tuple[str, str, bool, str]]]:
9797
v = minor_version_tuple(release)
9898
rx = re.compile
9999
# value is (file "name", OS slug, download button, file "description").
@@ -274,7 +274,7 @@ def build_file_dict(
274274

275275
def list_files(
276276
ftp_root: str, release: str
277-
) -> Generator[tuple[str, str, int, bool, str], None, None]:
277+
) -> Generator[tuple[str, str, str, bool, str], None, None]:
278278
"""List all of the release's download files."""
279279
reldir = base_version(release)
280280
for rfile in os.listdir(path.join(ftp_root, reldir)):
@@ -336,7 +336,7 @@ def post_object(base_url: str, objtype: str, datadict: dict[str, Any]) -> int:
336336

337337

338338
def sign_release_files_with_sigstore(
339-
ftp_root: str, release: str, release_files: list[tuple[str, str, int, bool, str]]
339+
ftp_root: str, release: str, release_files: list[tuple[str, str, str, bool, str]]
340340
) -> None:
341341
filenames = [
342342
ftp_root + f"{base_version(release)}/{rfile}" for rfile, *_ in release_files
@@ -457,7 +457,7 @@ def has_sigstore_signature(filename: str) -> bool:
457457

458458

459459
def parse_args() -> argparse.Namespace:
460-
def ensure_trailing_slash(s: str):
460+
def ensure_trailing_slash(s: str) -> str:
461461
if not s.endswith("/"):
462462
s += "/"
463463
return s

0 commit comments

Comments
 (0)