Skip to content

Commit a51766f

Browse files
committed
update import
1 parent f0b45f6 commit a51766f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/idom/backend/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from typing_extensions import Protocol, runtime_checkable
88

9-
from idom.types import RootComponentConstructor
9+
from idom.core.types import RootComponentConstructor
1010

1111

1212
_App = TypeVar("_App")

src/idom/backend/utils.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,10 @@ def all_implementations() -> Iterator[BackendImplementation[Any]]:
117117
"""Yield all available server implementations"""
118118
for name in SUPPORTED_PACKAGES:
119119
try:
120-
module = import_module(f"idom.server.{name}")
120+
relative_import_name = f"{__name__.rsplit('.', 1)[0]}.{name}"
121+
module = import_module(relative_import_name)
121122
except ImportError: # pragma: no cover
123+
logger.debug(f"Failed to import {name!r}", exc_info=True)
122124
continue
123125

124126
if not isinstance(module, BackendImplementation):

0 commit comments

Comments
 (0)