moonraker: fix imports for type checking
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
1c248d1de8
commit
2ab63d75fc
|
@ -45,7 +45,7 @@ if TYPE_CHECKING:
|
||||||
from moonraker import Server
|
from moonraker import Server
|
||||||
from confighelper import ConfigHelper
|
from confighelper import ConfigHelper
|
||||||
from websockets import APITransport
|
from websockets import APITransport
|
||||||
from components.file_manager import FileManager
|
from components.file_manager.file_manager import FileManager
|
||||||
import components.authorization
|
import components.authorization
|
||||||
MessageDelgate = Optional[tornado.httputil.HTTPMessageDelegate]
|
MessageDelgate = Optional[tornado.httputil.HTTPMessageDelegate]
|
||||||
AuthComp = Optional[components.authorization.Authorization]
|
AuthComp = Optional[components.authorization.Authorization]
|
||||||
|
|
|
@ -20,7 +20,7 @@ if TYPE_CHECKING:
|
||||||
from websockets import WebRequest
|
from websockets import WebRequest
|
||||||
from . import database
|
from . import database
|
||||||
from . import klippy_apis
|
from . import klippy_apis
|
||||||
from . import file_manager
|
from .file_manager import file_manager
|
||||||
DBComp = database.MoonrakerDatabase
|
DBComp = database.MoonrakerDatabase
|
||||||
APIComp = klippy_apis.KlippyAPI
|
APIComp = klippy_apis.KlippyAPI
|
||||||
FMComp = file_manager.FileManager
|
FMComp = file_manager.FileManager
|
||||||
|
|
|
@ -31,7 +31,7 @@ from typing import (
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from confighelper import ConfigHelper
|
from confighelper import ConfigHelper
|
||||||
from . import klippy_apis
|
from . import klippy_apis
|
||||||
from . import file_manager
|
from .file_manager import file_manager
|
||||||
APIComp = klippy_apis.KlippyAPI
|
APIComp = klippy_apis.KlippyAPI
|
||||||
FMComp = file_manager.FileManager
|
FMComp = file_manager.FileManager
|
||||||
FlexCallback = Callable[..., Optional[Coroutine]]
|
FlexCallback = Callable[..., Optional[Coroutine]]
|
||||||
|
|
|
@ -43,7 +43,7 @@ if TYPE_CHECKING:
|
||||||
from websockets import WebRequest, Subscribable
|
from websockets import WebRequest, Subscribable
|
||||||
from components.data_store import DataStore
|
from components.data_store import DataStore
|
||||||
from components.klippy_apis import KlippyAPI
|
from components.klippy_apis import KlippyAPI
|
||||||
from components.file_manager import FileManager
|
from components.file_manager.file_manager import FileManager
|
||||||
FlexCallback = Callable[..., Optional[Coroutine]]
|
FlexCallback = Callable[..., Optional[Coroutine]]
|
||||||
_T = TypeVar("_T")
|
_T = TypeVar("_T")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue