mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 16:57:50 +00:00
remove quotes on some types
This commit is contained in:
+2
-1
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import annotations
|
||||||
from asyncio import AbstractEventLoop, Queue, sleep
|
from asyncio import AbstractEventLoop, Queue, sleep
|
||||||
from json.decoder import JSONDecodeError
|
from json.decoder import JSONDecodeError
|
||||||
from logging import getLogger
|
from logging import getLogger
|
||||||
@@ -65,7 +66,7 @@ class FileChangeHandler(RegexMatchingEventHandler):
|
|||||||
self.maybe_reload(src_path)
|
self.maybe_reload(src_path)
|
||||||
|
|
||||||
class Loader:
|
class Loader:
|
||||||
def __init__(self, server_instance: 'PluginManager', plugin_path: str, loop: AbstractEventLoop, live_reload: bool = False) -> None:
|
def __init__(self, server_instance: PluginManager, plugin_path: str, loop: AbstractEventLoop, live_reload: bool = False) -> None:
|
||||||
self.loop = loop
|
self.loop = loop
|
||||||
self.logger = getLogger("Loader")
|
self.logger = getLogger("Loader")
|
||||||
self.plugin_path = plugin_path
|
self.plugin_path = plugin_path
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ class RemoteVer(TypedDict):
|
|||||||
assets: List[RemoteVerAsset]
|
assets: List[RemoteVerAsset]
|
||||||
|
|
||||||
class Updater:
|
class Updater:
|
||||||
def __init__(self, context: 'PluginManager') -> None:
|
def __init__(self, context: PluginManager) -> None:
|
||||||
self.context = context
|
self.context = context
|
||||||
self.settings = self.context.settings
|
self.settings = self.context.settings
|
||||||
# Exposes updater methods to frontend
|
# Exposes updater methods to frontend
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
from __future__ import annotations
|
||||||
from os import stat_result
|
from os import stat_result
|
||||||
import uuid
|
import uuid
|
||||||
from json.decoder import JSONDecodeError
|
from json.decoder import JSONDecodeError
|
||||||
@@ -27,7 +28,7 @@ class FilePickerObj(TypedDict):
|
|||||||
is_dir: bool
|
is_dir: bool
|
||||||
|
|
||||||
class Utilities:
|
class Utilities:
|
||||||
def __init__(self, context: 'PluginManager') -> None:
|
def __init__(self, context: PluginManager) -> None:
|
||||||
self.context = context
|
self.context = context
|
||||||
self.util_methods: Dict[str, Callable[..., Coroutine[Any, Any, Any]]] = {
|
self.util_methods: Dict[str, Callable[..., Coroutine[Any, Any, Any]]] = {
|
||||||
"ping": self.ping,
|
"ping": self.ping,
|
||||||
|
|||||||
Reference in New Issue
Block a user