diff options
author | George Burgess IV <gbiv@google.com> | 2023-12-04 09:17:17 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-12-04 21:49:43 +0000 |
commit | 679eee7e2a7ab53a370e8eceeea1118cc8a83dd1 (patch) | |
tree | e0a3a7dba0a490bf9f3e51195c1dfd608cae04d2 /rust_tools/rust_watch.py | |
parent | 763a108b044a3880279573e1b9b97260ced20e81 (diff) | |
download | toolchain-utils-679eee7e2a7ab53a370e8eceeea1118cc8a83dd1.tar.gz |
rust_tools: fix mypy type complaints
This fixes all type complaints issued by
`PYTHONPATH=.. python3 -m mypy --follow-imports=silent *.py` in this
directory.
BUG=b:314767343
TEST=mypy
Change-Id: Ic376bc75d601987e30ed30db446c2842b3fe479f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/5084477
Tested-by: George Burgess <gbiv@chromium.org>
Reviewed-by: Bob Haarman <inglorion@chromium.org>
Commit-Queue: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'rust_tools/rust_watch.py')
-rwxr-xr-x | rust_tools/rust_watch.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/rust_tools/rust_watch.py b/rust_tools/rust_watch.py index c912e493..68e7102e 100755 --- a/rust_tools/rust_watch.py +++ b/rust_tools/rust_watch.py @@ -285,7 +285,7 @@ def maybe_compose_email( return None subject_pieces = [] - body_pieces = [] + body_pieces: List[tiny_render.Piece] = [] # Separate the sections a bit for prettier output. if body_pieces: @@ -381,30 +381,30 @@ def main(argv: List[str]) -> None: if maybe_bug is None: logging.info("No bug to file") else: - title, body = maybe_bug + bug_title, bug_body = maybe_bug if opts.skip_side_effects: logging.info( "Skipping sending bug with title %r and contents\n%s", - title, - body, + bug_title, + bug_body, ) else: logging.info("Writing new bug") - file_bug(title, body) + file_bug(bug_title, bug_body) if maybe_email is None: logging.info("No email to send") else: - title, body = maybe_email + email_title, email_body = maybe_email if opts.skip_side_effects: logging.info( "Skipping sending email with title %r and contents\n%s", - title, - tiny_render.render_html_pieces(body), + email_title, + tiny_render.render_html_pieces(email_body), ) else: logging.info("Sending email") - send_email(title, body) + send_email(email_title, email_body) if opts.skip_state_update: logging.info("Skipping state update, as requested") @@ -423,4 +423,4 @@ def main(argv: List[str]) -> None: if __name__ == "__main__": - sys.exit(main(sys.argv[1:])) + main(sys.argv[1:]) |