From cc3373c0e481cc3916e38c34c50579ebb6778c98 Mon Sep 17 00:00:00 2001 From: mlcui Date: Wed, 28 Feb 2024 23:49:31 +0000 Subject: [PATCH] git_cl: Fix Python type annotations for Pylance Pylance does not like the ending bracket on its own line. As `UploadAllSquashed` above uses inline type annotations, rewrite `_UploadAllPrecheck`s type annotations inline as well. Bug: None Change-Id: I9b34cb4834530fffb9cb1788cd690f34d805f96f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5333896 Commit-Queue: Michael Cui Reviewed-by: Joanna Wang --- git_cl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git_cl.py b/git_cl.py index 2e469683c..cd724c93a 100755 --- a/git_cl.py +++ b/git_cl.py @@ -5206,9 +5206,9 @@ def UploadAllSquashed(options: optparse.Values, return 0 -def _UploadAllPrecheck(options, orig_args): - # type: (optparse.Values, Sequence[str]) -> Tuple[Sequence[Changelist], - # bool] +def _UploadAllPrecheck( + options: optparse.Values, + orig_args: Sequence[str]) -> Tuple[Sequence[Changelist], bool]: """Checks the state of the tree and gives the user uploading options Returns: A tuple of the ordered list of changes that have new commits