mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 20:51:57 +00:00
move to module imports
This commit is contained in:
@@ -27,7 +27,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
|
||||||
|
|||||||
@@ -21,18 +21,13 @@ from .localplatform import ON_WINDOWS
|
|||||||
from .import helpers
|
from .import helpers
|
||||||
from .localplatform import service_stop, service_start, get_home_path, get_username
|
from .localplatform import service_stop, service_start, get_home_path, get_username
|
||||||
|
|
||||||
class FilePickerObj(TypedDict):
|
|
||||||
file: Path
|
|
||||||
filest: stat_result
|
|
||||||
is_dir: bool
|
|
||||||
|
|
||||||
class FilePickerObj(TypedDict):
|
class FilePickerObj(TypedDict):
|
||||||
file: Path
|
file: Path
|
||||||
filest: stat_result
|
filest: stat_result
|
||||||
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