diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-08-23 09:26:16 +0200 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-09-28 12:54:52 +0200 |
commit | 5fefb11ffd50dcda826cd5a256c8b3f650221050 (patch) | |
tree | d98721a1b054b894e282668aea79157788903e73 /src/hydrilla/proxy/state_impl/repos.py | |
parent | c100476b0a34f5098efc96bf2487f09b66b4a6c4 (diff) | |
download | haketilo-hydrilla-5fefb11ffd50dcda826cd5a256c8b3f650221050.tar.gz haketilo-hydrilla-5fefb11ffd50dcda826cd5a256c8b3f650221050.zip |
introduce package installation state enum
Diffstat (limited to 'src/hydrilla/proxy/state_impl/repos.py')
-rw-r--r-- | src/hydrilla/proxy/state_impl/repos.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hydrilla/proxy/state_impl/repos.py b/src/hydrilla/proxy/state_impl/repos.py index f4c7c71..663a450 100644 --- a/src/hydrilla/proxy/state_impl/repos.py +++ b/src/hydrilla/proxy/state_impl/repos.py @@ -35,7 +35,6 @@ from __future__ import annotations import re import json import tempfile -import requests import sqlite3 import typing as t import dataclasses as dc @@ -44,6 +43,8 @@ from urllib.parse import urlparse, urljoin from datetime import datetime from pathlib import Path +import requests + from ... import json_instances from ... import item_infos from ... import versions @@ -349,7 +350,7 @@ class ConcreteRepoStore(st.RepoStore): return ConcreteRepoRef(str(repo_id), self.state) def get_display_infos(self, include_deleted: bool = False) \ - -> t.Iterable[st.RepoDisplayInfo]: + -> t.Sequence[st.RepoDisplayInfo]: with self.state.cursor() as cursor: condition: str = 'TRUE' if include_deleted: |