Skip to content

Commit a24197f

Browse files
committed
starlette 0.37.2 upgrade
1 parent 83f8783 commit a24197f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ellar/core/middleware/middleware.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ def __init__(self, cls: t.Type[T], **options: t.Any) -> None:
1919
@t.no_type_check
2020
def __call__(self, app: ASGIApp, injector: EllarInjector) -> T:
2121
self.kwargs.update(app=app)
22-
return injector.create_object(self.cls, additional_kwargs=self.kwargs)
22+
try:
23+
return injector.create_object(self.cls, additional_kwargs=self.kwargs)
24+
except TypeError: # pragma: no cover
25+
# TODO: Fix future typing for lower python version.
26+
return self.cls(**self.kwargs)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ classifiers = [
4141

4242
dependencies = [
4343
"injector == 0.21.0",
44-
"starlette == 0.37.1",
44+
"starlette == 0.37.2",
4545
"pydantic >=2.5.1,<3.0.0",
4646
"typing-extensions>=4.8.0",
4747
"jinja2",

0 commit comments

Comments
 (0)