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 <mlcui@google.com>
Reviewed-by: Joanna Wang <jojwang@chromium.org>
changes/96/5333896/2
mlcui 1 year ago committed by LUCI CQ
parent 50de666ba4
commit cc3373c0e4

@ -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

Loading…
Cancel
Save