From 2ab63d75fc302f527271f4bbd15c04d5612922b2 Mon Sep 17 00:00:00 2001 From: Arksine Date: Wed, 26 May 2021 19:57:21 -0400 Subject: [PATCH] moonraker: fix imports for type checking Signed-off-by: Eric Callahan --- moonraker/app.py | 2 +- moonraker/components/history.py | 2 +- moonraker/components/paneldue.py | 2 +- moonraker/moonraker.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moonraker/app.py b/moonraker/app.py index 0d45225..f3fe5db 100644 --- a/moonraker/app.py +++ b/moonraker/app.py @@ -45,7 +45,7 @@ if TYPE_CHECKING: from moonraker import Server from confighelper import ConfigHelper from websockets import APITransport - from components.file_manager import FileManager + from components.file_manager.file_manager import FileManager import components.authorization MessageDelgate = Optional[tornado.httputil.HTTPMessageDelegate] AuthComp = Optional[components.authorization.Authorization] diff --git a/moonraker/components/history.py b/moonraker/components/history.py index 3b08612..aa6d486 100644 --- a/moonraker/components/history.py +++ b/moonraker/components/history.py @@ -20,7 +20,7 @@ if TYPE_CHECKING: from websockets import WebRequest from . import database from . import klippy_apis - from . import file_manager + from .file_manager import file_manager DBComp = database.MoonrakerDatabase APIComp = klippy_apis.KlippyAPI FMComp = file_manager.FileManager diff --git a/moonraker/components/paneldue.py b/moonraker/components/paneldue.py index 462ee8e..486f169 100644 --- a/moonraker/components/paneldue.py +++ b/moonraker/components/paneldue.py @@ -31,7 +31,7 @@ from typing import ( if TYPE_CHECKING: from confighelper import ConfigHelper from . import klippy_apis - from . import file_manager + from .file_manager import file_manager APIComp = klippy_apis.KlippyAPI FMComp = file_manager.FileManager FlexCallback = Callable[..., Optional[Coroutine]] diff --git a/moonraker/moonraker.py b/moonraker/moonraker.py index 386a1c0..9e34c06 100755 --- a/moonraker/moonraker.py +++ b/moonraker/moonraker.py @@ -43,7 +43,7 @@ if TYPE_CHECKING: from websockets import WebRequest, Subscribable from components.data_store import DataStore from components.klippy_apis import KlippyAPI - from components.file_manager import FileManager + from components.file_manager.file_manager import FileManager FlexCallback = Callable[..., Optional[Coroutine]] _T = TypeVar("_T")