Skip to content

Commit 89e4551

Browse files
author
Andrei Neagu
committed
typos
1 parent 66734d6 commit 89e4551

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/service-library/src/servicelib/fastapi/lifespan_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
LifespanContextManager: TypeAlias = Callable[[FastAPI], AsyncContextManager[None]]
88

99

10-
def combine_lfiespans(*lifespans: LifespanContextManager) -> LifespanContextManager:
11-
"""Applyes the `setup` part of the context mangers in the order they are provided.
10+
def combine_lifespans(*lifespans: LifespanContextManager) -> LifespanContextManager:
11+
"""Applies the `setup` part of the contextmangers in the order they are provided.
1212
The `teardown` is in revere order with regarad to the `seutp`.
1313
"""
1414

packages/service-library/tests/fastapi/test_lifespan_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import pytest
55
from asgi_lifespan import LifespanManager
66
from fastapi import FastAPI
7-
from servicelib.fastapi.lifespan_utils import combine_lfiespans
7+
from servicelib.fastapi.lifespan_utils import combine_lifespans
88

99

1010
async def test_multiple_lifespan_managers(capsys: pytest.CaptureFixture):
@@ -20,7 +20,7 @@ async def cache_lifespan(_: FastAPI) -> AsyncIterator[None]:
2020
yield
2121
print("shutdown CACHE")
2222

23-
app = FastAPI(lifespan=combine_lfiespans(database_lifespan, cache_lifespan))
23+
app = FastAPI(lifespan=combine_lifespans(database_lifespan, cache_lifespan))
2424

2525
capsys.readouterr()
2626

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from contextlib import asynccontextmanager
33

44
from fastapi import FastAPI
5-
from servicelib.fastapi.lifespan_utils import LifespanContextManager, combine_lfiespans
5+
from servicelib.fastapi.lifespan_utils import LifespanContextManager, combine_lifespans
66
from servicelib.fastapi.openapi import override_fastapi_openapi_method
77
from servicelib.fastapi.profiler import initialize_profiler
88
from servicelib.fastapi.prometheus_instrumentation import (
@@ -73,7 +73,7 @@ def create_app(settings: ApplicationSettings | None = None) -> FastAPI:
7373
"/doc" if app_settings.DYNAMIC_SCHEDULER_SWAGGER_API_DOC_ENABLED else None
7474
),
7575
redoc_url=None,
76-
lifespan=combine_lfiespans(*lifespans, _lifespan_banner),
76+
lifespan=combine_lifespans(*lifespans, _lifespan_banner),
7777
)
7878
override_fastapi_openapi_method(app)
7979

0 commit comments

Comments
 (0)