@@ -140,15 +140,15 @@ def __post_init__(self) -> None:
140140
141141@dataclasses .dataclass (kw_only = True , slots = True )
142142class LitestarCorsInstrument (CorsInstrument ):
143- bootstrap_config : LitestarConfig
143+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
144144
145145 def bootstrap (self ) -> None :
146146 self .bootstrap_config .application_config .cors_config = CORSConfig (** self .cors_kwargs )
147147
148148
149149@dataclasses .dataclass (kw_only = True , slots = True )
150150class LitestarHealthChecksInstrument (HealthChecksInstrument ):
151- bootstrap_config : LitestarConfig
151+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
152152
153153 def build_litestar_health_check_router (self ) -> "litestar.Router" :
154154 @litestar .get (media_type = litestar .MediaType .JSON )
@@ -168,7 +168,7 @@ def bootstrap(self) -> None:
168168
169169@dataclasses .dataclass (kw_only = True )
170170class LitestarLoggingInstrument (LoggingInstrument ):
171- bootstrap_config : LitestarConfig
171+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
172172
173173 def _build_logging_middleware_excluded_paths (self ) -> list [str ]:
174174 """Regex-escaped path prefixes for infrastructure routes not worth an access log line."""
@@ -210,7 +210,7 @@ def _configure_structlog_loggers(self) -> None:
210210
211211@dataclasses .dataclass (kw_only = True )
212212class LitestarOpenTelemetryInstrument (OpenTelemetryInstrument ):
213- bootstrap_config : LitestarConfig
213+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
214214 missing_dependency_message = "opentelemetry-instrumentation-asgi or litestar>=2.22 is not installed"
215215
216216 @staticmethod
@@ -252,7 +252,7 @@ def bootstrap(self) -> None:
252252
253253@dataclasses .dataclass (kw_only = True )
254254class LitestarPrometheusInstrument (PrometheusInstrument ):
255- bootstrap_config : LitestarConfig
255+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
256256 missing_dependency_message = "prometheus_client is not installed"
257257
258258 @staticmethod
@@ -280,7 +280,7 @@ class LitestarPrometheusController(PrometheusController):
280280
281281@dataclasses .dataclass (kw_only = True )
282282class LitestarSwaggerInstrument (SwaggerInstrument ):
283- bootstrap_config : LitestarConfig
283+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
284284 not_configured_reason = "swagger_path is empty or not valid"
285285
286286 @classmethod
@@ -328,7 +328,7 @@ class LitestarBootstrapper(BaseBootstrapper["litestar.Litestar"]):
328328 LitestarPrometheusInstrument ,
329329 LitestarSwaggerInstrument ,
330330 ]
331- bootstrap_config : LitestarConfig
331+ bootstrap_config : LitestarConfig # ty: ignore[invalid-mutable-override]
332332 not_ready_message = "litestar is not installed"
333333
334334 def __init__ (self , bootstrap_config : LitestarConfig ) -> None :
0 commit comments