From de1b24b8bc4188de9852ee98c3c71043e37974ea Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 25 Sep 2023 13:28:15 -0400 Subject: remove quotes on some types --- backend/src/loader.py | 1 + backend/src/updater.py | 2 +- backend/src/utilities.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/loader.py b/backend/src/loader.py index ac8c6988..e59cbcaf 100644 --- a/backend/src/loader.py +++ b/backend/src/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 diff --git a/backend/src/updater.py b/backend/src/updater.py index b4f92adb..d28e67b0 100644 --- a/backend/src/updater.py +++ b/backend/src/updater.py @@ -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 diff --git a/backend/src/utilities.py b/backend/src/utilities.py index 1e4110cf..3c7c8c2e 100644 --- a/backend/src/utilities.py +++ b/backend/src/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, -- cgit v1.2.3