make mypy happy (MR 2252)

Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
Caleb Connolly 2024-06-13 05:35:30 +02:00 committed by Oliver Smith
parent f2ca9c618e
commit 0365438134
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
10 changed files with 19 additions and 14 deletions

View file

@ -50,6 +50,8 @@ def apkindex_hash(url: str, length: int=8) -> Path:
return Path(f"APKINDEX.{ret}.tar.gz")
# FIXME: make config.mirrors a normal dict
# mypy: disable-error-code="literal-required"
@Cache("user_repository", "mirrors_exclude")
def urls(user_repository=True, mirrors_exclude: List[str] = []):
"""Get a list of repository URLs, as they are in /etc/apk/repositories.
@ -82,7 +84,7 @@ def urls(user_repository=True, mirrors_exclude: List[str] = []):
for repo in pkgrepo_names() + ["alpine"]:
if repo in mirrors_exclude:
continue
mirror = config.mirrors[repo] # mypy: disable-error-code="literal-required"
mirror = config.mirrors[repo]
mirrordirs = []
if repo == "alpine":
# FIXME: This is a bit of a mess