moonraker: fix imports for type checking

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine 2021-05-26 19:57:21 -04:00 committed by Eric Callahan
parent 1c248d1de8
commit 2ab63d75fc
4 changed files with 4 additions and 4 deletions

View File

@ -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]

View File

@ -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

View File

@ -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]]

View File

@ -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")