From 926a84394727ea8a9b7a2f79cd47a239756b212f Mon Sep 17 00:00:00 2001 From: Alexander Guschin <1aguschin@gmail.com> Date: Thu, 28 Apr 2022 09:35:12 +0300 Subject: [PATCH] Fix mypy failing (#211) --- mlem/utils/github.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mlem/utils/github.py b/mlem/utils/github.py index e1750024..42ef3b8c 100644 --- a/mlem/utils/github.py +++ b/mlem/utils/github.py @@ -75,7 +75,7 @@ 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 @@ -83,7 +83,7 @@ def github_check_rev(org: str, repo: str, rev: str): 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()}