Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
Fix mypy failing (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
aguschin authored Apr 28, 2022
1 parent c9e8ac6 commit 926a843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mlem/utils/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ def ls_github_tags(org: str, repo: str):
def github_check_rev(org: str, repo: str, rev: str):
res = requests.head(
f"https://api.github.com/repos/{org}/{repo}/commits/{rev}",
auth=(CONFIG.GITHUB_USERNAME, CONFIG.GITHUB_TOKEN),
auth=(CONFIG.GITHUB_USERNAME, CONFIG.GITHUB_TOKEN), # type: ignore
)
return res.status_code == 200


def _ls_github_refs(org: str, repo: str, endpoint: str):
result = requests.get(
f"https://api.github.com/repos/{org}/{repo}/{endpoint}",
auth=(CONFIG.GITHUB_USERNAME, CONFIG.GITHUB_TOKEN),
auth=(CONFIG.GITHUB_USERNAME, CONFIG.GITHUB_TOKEN), # type: ignore
)
if result.status_code == 200:
return {b["name"]: b["commit"]["sha"] for b in result.json()}
Expand Down

0 comments on commit 926a843

Please sign in to comment.