fix(openrouter): add strict typing annotations to config and exception classes

This commit is contained in:
yyouretoast 2026-10-16 16:34:12 +03:00
parent afc976a7e9
commit b7530315f8
2 changed files with 3 additions and 3 deletions

View file

@ -238,7 +238,7 @@ class OpenRouterRegionNotSupportedError(NotFoundError):
max_retries: int | None = None,
num_retries: int | None = None,
region: str | None = None,
):
) -> None:
self.region = region
super().__init__(
message=message,

View file

@ -52,8 +52,8 @@ class OpenrouterConfig(OpenAIGPTConfig):
def __init__(
self,
region: str | None = None,
**kwargs,
):
**kwargs: object,
) -> None:
self.region = region
super().__init__(**kwargs)