mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-29 06:33:28 +00:00
fix(openrouter): add pyright ignores for untyped parent class __init__ and httpx
This commit is contained in:
parent
f844ec8efc
commit
b35689d8f8
2 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue