Skip to content

Commit

Permalink
Update Starlette
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanderlee committed Jan 11, 2024
1 parent 23103f7 commit e012d0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ dependencies = [
"marshmallow-dataclass >=8.5.1,<9",
"python-multipart >=0.0.5,<0.0.7",
"pyyaml >=5.4.1",
"starlette >=0.19,<1",
"starlette >=0.35,<1",
]
dynamic = ["version"]

Expand Down
2 changes: 1 addition & 1 deletion starmallow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.2.3"
__version__ = "0.3.0"

from .applications import StarMallow
from .exceptions import RequestValidationError
Expand Down
4 changes: 2 additions & 2 deletions starmallow/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def build_middleware_stack(self) -> ASGIApp:
)

app = self.router
for cls, options in reversed(middleware):
app = cls(app=app, **options)
for cls, args, kwargs in reversed(middleware):
app = cls(app, *args, **kwargs)
return app

def openapi(self) -> Dict[str, Any]:
Expand Down

0 comments on commit e012d0d

Please sign in to comment.