Skip to content

Commit 1d9b638

Browse files
[update-checkout] fix incorrect number of returned values
1 parent 450fe43 commit 1d9b638

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/update_checkout/update_checkout/update_checkout.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import sys
1616
import traceback
1717
from multiprocessing import freeze_support
18-
from typing import Any, Dict, Hashable, Optional, Set, List, Union
18+
from typing import Any, Dict, Hashable, Optional, Set, List, Tuple, Union
1919

2020
from .cli_arguments import CliArguments
2121
from .git_command import Git, GitException
@@ -394,7 +394,7 @@ def update_all_repositories(
394394
scheme_name: str,
395395
scheme_map: Optional[Dict[str, Any]],
396396
cross_repos_pr: Dict[str, str],
397-
):
397+
) -> Tuple[List[SkippedReason], List[Union[Exception, None]]]:
398398
skipped_repositories = []
399399
pool_args: List[UpdateArguments] = []
400400
timestamp = get_timestamp_to_match(args.match_timestamp, args.source_root)
@@ -439,7 +439,7 @@ def update_all_repositories(
439439

440440
locked_repositories: set[str] = _is_any_repository_locked(pool_args)
441441
if len(locked_repositories) > 0:
442-
return [
442+
return skipped_repositories, [
443443
Exception(f"'{repo_name}' is locked by git. Cannot update it.")
444444
for repo_name in locked_repositories
445445
]

0 commit comments

Comments
 (0)