diff options
| author | AAGaming <aagaming@riseup.net> | 2026-11-21 22:13:46 -0500 |
|---|---|---|
| committer | AAGaming <aagaming@riseup.net> | 2026-11-21 22:13:46 -0500 |
| commit | 39405b35478851b7ea2405f644aad9af31c0e317 (patch) | |
| tree | 01d407a330b761b226c85d9ab8f4ff47811d5307 /backend/decky_loader/utilities.py | |
| parent | c7dc279fc93af06b5e01cb42adec0f98662c4988 (diff) | |
| download | decky-loader-39405b35478851b7ea2405f644aad9af31c0e317.tar.gz decky-loader-39405b35478851b7ea2405f644aad9af31c0e317.zip | |
massage type checks until i can be bothered to do them better
Diffstat (limited to 'backend/decky_loader/utilities.py')
| -rw-r--r-- | backend/decky_loader/utilities.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py index 7f1ac09d..49376065 100644 --- a/backend/decky_loader/utilities.py +++ b/backend/decky_loader/utilities.py @@ -215,7 +215,7 @@ class Utilities: self.logger.debug(f"Finished stream for {url}") return res - async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None): + async def http_request_legacy(self, method: str, url: str, extra_opts: Any = {}, timeout: int | None = None) -> Any: async with ClientSession() as web: res = await web.request(method, url, ssl=helpers.get_ssl_context(), timeout=timeout, **extra_opts) # type: ignore text = await res.text() @@ -228,7 +228,7 @@ class Utilities: async def ping(self, **kwargs: Any): return "pong" - async def execute_in_tab(self, tab: str, run_async: bool, code: str): + async def execute_in_tab(self, tab: str, run_async: bool, code: str)-> Any: try: result = await inject_to_tab(tab, code, run_async) assert result @@ -321,7 +321,7 @@ class Utilities: order_by: str = "name_desc", filter_for: str | None = None, page: int = 1, - max: int = 1000): + max: int = 1000) -> Any: if path == None: path = get_home_path() @@ -382,7 +382,7 @@ class Utilities: folders.sort(key=lambda x: x['file'].name.casefold(), reverse = rev) #Constructing the final file list, folders first - all = [{ + all: List[Any] = [{ "isdir": x['is_dir'], "name": str(x['file'].name), "realpath": str(x['file']), |
