Skip to content

Commit 909bc35

Browse files
committed
fix: ensure non-optional settings in lifespan
1 parent 0be8956 commit 909bc35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stac_auth_proxy/lifespan.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def lifespan(settings: Settings | None = None, **settings_kwargs: Any):
3232

3333
if settings is None:
3434
settings = Settings(**settings_kwargs)
35+
assert settings is not None
3536

3637
@asynccontextmanager
3738
async def _lifespan(app: FastAPI):

0 commit comments

Comments
 (0)