From 40bc92d9c4464ff220004a2bdd5a9ee889688cd6 Mon Sep 17 00:00:00 2001 From: Daniel Smith <56164590+DanielRyanSmith@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:55:41 -0700 Subject: [PATCH] mypy changes --- tools/wpt/browser.py | 4 ++-- tools/wpt/check_chromium_revision.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/wpt/browser.py b/tools/wpt/browser.py index 8deec90b5ccbbba..181bd37a9e222c5 100644 --- a/tools/wpt/browser.py +++ b/tools/wpt/browser.py @@ -551,7 +551,7 @@ def _build_snapshots_url(self, revision, filename): return ("https://storage.googleapis.com/chromium-browser-snapshots/" f"{self._chromium_platform_string}/{revision}/{filename}") - def _get_pinned_chromium_revision(self) -> str: + def _get_pinned_chromium_revision(self): """Returns the pinned Chromium revision number.""" try: # File used to check the validity of new Chromium revisions. @@ -561,7 +561,7 @@ def _get_pinned_chromium_revision(self) -> str: with open(filepath) as f: return f.read().strip() except FileNotFoundError: - revision: str = get("https://storage.googleapis.com/wpt-versions/pinned_chromium_revision").text.strip() + revision = get("https://storage.googleapis.com/wpt-versions/pinned_chromium_revision").text.strip() return revision def _get_chromium_revision(self, filename=None, version=None): diff --git a/tools/wpt/check_chromium_revision.py b/tools/wpt/check_chromium_revision.py index ba0f3018a02c58a..543394f908bca21 100644 --- a/tools/wpt/check_chromium_revision.py +++ b/tools/wpt/check_chromium_revision.py @@ -16,4 +16,4 @@ def check_chromium_revision() -> None: if __name__ == "__main__": - check_chromium_revision() # type: ignore + check_chromium_revision()