summaryrefslogtreecommitdiff
path: root/backend/decky_loader/utilities.py
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2026-11-21 22:23:03 -0500
committerGitHub <noreply@github.com>2026-11-21 22:23:03 -0500
commit24082fe63cdcdf41993f9e1430d1405152a2c930 (patch)
tree59454b25fc5cffcbce82e7947d8e3803952fc5ba /backend/decky_loader/utilities.py
parentffd103b9c1a4ce5bf305e7c0998eda6e05457dad (diff)
downloaddecky-loader-24082fe63cdcdf41993f9e1430d1405152a2c930.tar.gz
decky-loader-24082fe63cdcdf41993f9e1430d1405152a2c930.zip
feat: Support new Steam Betas (only) and Frame (#1019)v4.0.0-pre1
Diffstat (limited to 'backend/decky_loader/utilities.py')
-rw-r--r--backend/decky_loader/utilities.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py
index 99a1b019..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']),
@@ -442,7 +442,7 @@ class Utilities:
enumerable: true,
configurable: true,
get: function() {
- return (GamepadNavTree?.m_context?.m_controller || FocusNavController)?.m_ActiveContext?.ActiveWindow || window;
+ return (window?.GamepadNavTree?.m_context?.m_controller || window?.FocusNavController)?.m_ActiveContext?.ActiveWindow || window;
}
});
""" + await res.text() + "\n}"