diff options
| author | AAGaming <aagaming@riseup.net> | 2023-09-25 13:28:15 -0400 |
|---|---|---|
| committer | marios8543 <marios8543@gmail.com> | 2023-10-17 17:08:23 +0300 |
| commit | ca1332334d3e05d36419b3a65b6f5dbee35409ca (patch) | |
| tree | 779b683ad823eacb395794fad3009d35fd09c7f1 | |
| parent | aebca54eaccaac827207c1d96b384224f93abb3b (diff) | |
| download | decky-loader-ca1332334d3e05d36419b3a65b6f5dbee35409ca.tar.gz decky-loader-ca1332334d3e05d36419b3a65b6f5dbee35409ca.zip | |
remove quotes on some types
| -rw-r--r-- | backend/loader.py | 3 | ||||
| -rw-r--r-- | backend/updater.py | 2 | ||||
| -rw-r--r-- | backend/utilities.py | 3 |
3 files changed, 5 insertions, 3 deletions
diff --git a/backend/loader.py b/backend/loader.py index dc7a5633..684570f7 100644 --- a/backend/loader.py +++ b/backend/loader.py @@ -1,3 +1,4 @@ +from __future__ import annotations from asyncio import AbstractEventLoop, Queue, sleep from json.decoder import JSONDecodeError from logging import getLogger @@ -65,7 +66,7 @@ class FileChangeHandler(RegexMatchingEventHandler): self.maybe_reload(src_path) 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.logger = getLogger("Loader") self.plugin_path = plugin_path diff --git a/backend/updater.py b/backend/updater.py index 0bd7218a..ac7c78d8 100644 --- a/backend/updater.py +++ b/backend/updater.py @@ -26,7 +26,7 @@ class RemoteVer(TypedDict): assets: List[RemoteVerAsset] class Updater: - def __init__(self, context: 'PluginManager') -> None: + def __init__(self, context: PluginManager) -> None: self.context = context self.settings = self.context.settings # Exposes updater methods to frontend diff --git a/backend/utilities.py b/backend/utilities.py index 1e4110cf..3c7c8c2e 100644 --- a/backend/utilities.py +++ b/backend/utilities.py @@ -1,3 +1,4 @@ +from __future__ import annotations from os import stat_result import uuid from json.decoder import JSONDecodeError @@ -27,7 +28,7 @@ class FilePickerObj(TypedDict): is_dir: bool class Utilities: - def __init__(self, context: 'PluginManager') -> None: + def __init__(self, context: PluginManager) -> None: self.context = context self.util_methods: Dict[str, Callable[..., Coroutine[Any, Any, Any]]] = { "ping": self.ping, |
