Skip to content

Commit

Permalink
mypy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRyanSmith committed Jun 28, 2022
1 parent ef768ec commit 40bc92d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/wpt/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion tools/wpt/check_chromium_revision.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ def check_chromium_revision() -> None:


if __name__ == "__main__":
check_chromium_revision() # type: ignore
check_chromium_revision()

0 comments on commit 40bc92d

Please sign in to comment.