Skip to content

Commit

Permalink
remove quotes on some types
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Sep 25, 2023
1 parent e22cc62 commit b81c41f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/loader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from asyncio import AbstractEventLoop, Queue, sleep
from json.decoder import JSONDecodeError
from logging import getLogger
Expand Down Expand Up @@ -65,7 +66,7 @@ def on_modified(self, event: DirModifiedEvent | FileModifiedEvent):
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
Expand Down
2 changes: 1 addition & 1 deletion backend/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion backend/utilities.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from os import stat_result
import uuid
from json.decoder import JSONDecodeError
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit b81c41f

Please sign in to comment.