move to module imports

This commit is contained in:
AAGaming
2023-09-25 13:06:46 -04:00
committed by marios8543
parent df755063c2
commit 5582457c58
3 changed files with 7 additions and 8 deletions

View File

@@ -27,7 +27,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

View File

@@ -18,21 +18,16 @@ if TYPE_CHECKING:
from .main import PluginManager
from .injector import inject_to_tab, get_gamepadui_tab, close_old_tabs, get_tab
from .localplatform import ON_WINDOWS
from . import helpers
from .import helpers
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):
file: Path
filest: stat_result
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,

4
main.py Normal file
View File

@@ -0,0 +1,4 @@
# This file is needed to make the relative imports in backend/ work properly.
if __name__ == "__main__":
from backend.main import main
main()