Skip to content

Commit 12da793

Browse files
fix: fix assign to type instead of annotation in add_route_dependencies (#822)
Co-authored-by: Vincent Sarago <[email protected]>
1 parent f49d999 commit 12da793

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stac_fastapi/api/stac_fastapi/api/app.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ async def ping():
373373
self.app.include_router(mgmt_router, tags=["Liveliness/Readiness"])
374374

375375
def add_route_dependencies(
376-
self, scopes: List[Scope], dependencies=List[Depends]
376+
self, scopes: List[Scope], dependencies: List[Depends]
377377
) -> None:
378378
"""Add custom dependencies to routes.
379379

stac_fastapi/api/stac_fastapi/api/routes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class Scope(TypedDict, total=False):
8888

8989

9090
def add_route_dependencies(
91-
routes: List[BaseRoute], scopes: List[Scope], dependencies=List[params.Depends]
91+
routes: List[BaseRoute], scopes: List[Scope], dependencies: List[params.Depends]
9292
) -> None:
9393
"""Add dependencies to routes.
9494

0 commit comments

Comments
 (0)