formatting: rerun on Python after black upgrade
BUG=b:233893248
TEST=CQ passes
Change-Id: Ie27cf4fadff9ed5a515d929fd90172ddacdc631a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/4294492
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
diff --git a/scripts/gerrit.py b/scripts/gerrit.py
index f087d05..8a8ed53 100644
--- a/scripts/gerrit.py
+++ b/scripts/gerrit.py
@@ -164,6 +164,7 @@
def _run_parallel_tasks(task, *args):
"""Small wrapper around BackgroundTaskRunner to enforce job count."""
+
# When we run in parallel, we can hit the max requests limit.
def check_exc(e):
if not isinstance(e, gob_util.GOBError):
@@ -621,6 +622,7 @@
@classmethod
def __call__(cls, opts):
"""Implement the action."""
+
# Convert user-friendly command line option into a gerrit parameter.
def task(arg):
helper, cl = GetGerrit(opts, arg)
@@ -1039,6 +1041,7 @@
@staticmethod
def __call__(opts):
"""Implement the action."""
+
# Process branches in parallel, but CLs in serial in case of CL stacks.
def task(branch):
for arg in opts.cls:
@@ -1457,7 +1460,7 @@
def GetParser(
parser: commandline.ArgumentParser = None,
-) -> (commandline.ArgumentParser):
+) -> commandline.ArgumentParser:
"""Returns the full parser to use for this module."""
if parser is None:
parser = GetBaseParser()