From 5582457c58c91d2e31e141bec1d2b139c9c2ff61 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 25 Sep 2023 13:06:46 -0400 Subject: move to module imports --- backend/src/utilities.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'backend/src/utilities.py') diff --git a/backend/src/utilities.py b/backend/src/utilities.py index 31993aed..1e4110cf 100644 --- a/backend/src/utilities.py +++ b/backend/src/utilities.py @@ -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, -- cgit v1.2.3