From 0d9ccbab9451d0cfed05d6b0cb9ae895d4ac8ca7 Mon Sep 17 00:00:00 2001 From: Mihidum Hettiyahandi <55163074+mihidumh@users.noreply.github.com> Date: Thu, 16 Jul 2026 12:44:26 +1000 Subject: [PATCH] style(router): use str | None to satisfy the UP045 strict-rule budget --- litellm/router.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/router.py b/litellm/router.py index 3b68769fa29..86db4a55c5a 100644 --- a/litellm/router.py +++ b/litellm/router.py @@ -7711,7 +7711,7 @@ class Router: len(config.available_models), ) - def _remove_deployment_from_strategy_registries(self, model_name: str, litellm_model: Optional[str]) -> None: + def _remove_deployment_from_strategy_registries(self, model_name: str, litellm_model: str | None) -> None: """ Drop a model_name's strategy-router registration (auto / complexity / adaptive / quality) when its deployment is removed from the router.