Skip to content

Commit fd98bf1

Browse files
committed
fixed circular import and missing TemplateContextProcessorValidator
1 parent 5593309 commit fd98bf1

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ellar/core/conf/mixins.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from ellar.common.constants import LOG_LEVELS as log_levels
44
from ellar.common.interfaces import IAPIVersioning, IEllarMiddleware, IExceptionHandler
55
from ellar.common.templating import JinjaLoaderType
6-
from ellar.common.templating.validator import TemplateContextProcessorValidator
76
from ellar.di import ProviderConfig
87
from ellar.di.injector.tree_manager import ModuleTreeManager
98
from starlette.requests import HTTPConnection, Request
@@ -40,10 +39,7 @@ class ConfigDefaultTypesMixin:
4039
JINJA_LOADERS: t.List[t.Union[JinjaLoaderType, t.Any]]
4140

4241
TEMPLATES_CONTEXT_PROCESSORS: t.List[
43-
t.Union[
44-
TemplateContextProcessorValidator,
45-
t.Callable[[t.Union[Request, HTTPConnection]], t.Dict[str, t.Any]],
46-
]
42+
t.Callable[[t.Union[Request, HTTPConnection]], t.Dict[str, t.Any]]
4743
]
4844

4945
# Application route versioning scheme

ellar/core/execution_context/host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from ellar.common.compatible import cached_property
1111
from ellar.common.interfaces import IHostContext
1212
from ellar.common.types import TReceive, TScope, TSend
13-
from ellar.core.execution_context import current_injector
13+
from ellar.core.execution_context.injector import current_injector
1414

1515
if t.TYPE_CHECKING: # pragma: no cover
1616
from ellar.app.main import App

0 commit comments

Comments
 (0)