File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
packages/service-library/src/servicelib/fastapi Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 22import logging
33from collections .abc import AsyncIterator
44from contextlib import AsyncExitStack
5- from typing import Any , Final
5+ from typing import Final
66
77import aiodocker
88import aiohttp
2121_DOCKER_API_PROXY_SETTINGS : Final [str ] = "docker_api_proxy_settings"
2222
2323
24- def get_remote_docker_client_main_lifespan (
25- settings : DockerApiProxysettings ,
26- ) -> dict [str , Any ]:
24+ def get_remote_docker_client_main_lifespan (settings : DockerApiProxysettings ) -> State :
2725 return {_DOCKER_API_PROXY_SETTINGS : settings }
2826
2927
Original file line number Diff line number Diff line change 11# pylint: disable=protected-access
22
33from collections .abc import AsyncIterator
4- from typing import Any , Final
4+ from typing import Final
55
66from fastapi import FastAPI
77from fastapi_lifespan_manager import State
@@ -57,9 +57,7 @@ def _on_shutdown() -> None:
5757_PROMETHEUS_INSTRUMENTATION_ENABLED : Final [str ] = "prometheus_instrumentation_enabled"
5858
5959
60- def get_prometheus_instrumentationmain_main_lifespan (
61- * , enabled : bool
62- ) -> dict [str , Any ]:
60+ def get_prometheus_instrumentationmain_main_lifespan (* , enabled : bool ) -> State :
6361 return {_PROMETHEUS_INSTRUMENTATION_ENABLED : enabled }
6462
6563
You can’t perform that action at this time.
0 commit comments