Skip to content

Add typing to update_checkout.py #81160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion utils/update_checkout/update_checkout/update_checkout.py
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@
import sys
import traceback
from multiprocessing import Lock, Pool, cpu_count, freeze_support
from typing import Optional

from build_swift.build_swift.constants import SWIFT_SOURCE_ROOT

@@ -74,7 +75,7 @@ def check_parallel_results(results, op):
return fail_count


def confirm_tag_in_repo(tag, repo_name):
def confirm_tag_in_repo(tag, repo_name) -> Optional[str]:
# type: (str, str) -> str | None
"""Confirm that a given tag exists in a git repository. This function
assumes that the repository is already a current working directory before