fix(openrouter): add pyright ignores for untyped parent class __init__ and httpx

This commit is contained in:
yyouretoast 2026-10-16 19:23:52 +03:00
parent f844ec8efc
commit b35689d8f8
2 changed files with 3 additions and 3 deletions

View file

@ -233,14 +233,14 @@ class OpenRouterRegionNotSupportedError(NotFoundError):
message: str,
model: str,
llm_provider: str = "openrouter",
response: httpx.Response | None = None,
response: httpx.Response | None = None, # pyright: ignore[reportUnknownMemberType,reportUnknownParameterType] # httpx.Response type is untyped
litellm_debug_info: str | None = None,
max_retries: int | None = None,
num_retries: int | None = None,
region: str | None = None,
) -> None:
self.region = region
super().__init__(
super().__init__( # pyright: ignore[reportUnknownMemberType] # NotFoundError.__init__ is untyped
message=message,
model=model,
llm_provider=llm_provider,

View file

@ -54,7 +54,7 @@ class OpenrouterConfig(OpenAIGPTConfig):
region: str | None = None,
) -> None:
self.region = region
super().__init__()
super().__init__() # pyright: ignore[reportUnknownMemberType] # OpenAIGPTConfig.__init__ is untyped
def get_complete_url(
self,