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()