Skip to content

Commit

Permalink
fix suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Dec 21, 2024
1 parent b9d6a9c commit 3572fc7
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions ollama/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __init__(
self,
host: Optional[str] = None,
*,
follow_redirects: bool | None = None,
follow_redirects: Optional[bool] = None,
timeout: Any = None,
headers: Optional[Mapping[str, str]] = None,
**httpx_kwargs: Any,
Expand All @@ -99,8 +99,8 @@ def __init__(
self,
host: Optional[str] = None,
*,
client: httpx.Client | None = None,
follow_redirects: bool | None = None,
client: Optional[httpx.Client] = None,
follow_redirects: Optional[bool] = None,
timeout: Any = None,
headers: Optional[Mapping[str, str]] = None,
**httpx_kwargs: Any,
Expand Down Expand Up @@ -134,6 +134,7 @@ def _request(
cls: Type[T],
method: str,
path: str,
*,
stream: Literal[False] = False,
**kwargs,
) -> T: ...
Expand All @@ -144,6 +145,7 @@ def _request(
cls: Type[T],
method: str,
path: str,
*,
stream: Literal[True] = True,
**kwargs,
) -> Iterator[T]: ...
Expand All @@ -154,6 +156,7 @@ def _request(
cls: Type[T],
method: str,
path: str,
*,
stream: bool = False,
**kwargs,
) -> Union[T, Iterator[T]]: ...
Expand Down Expand Up @@ -629,7 +632,7 @@ def __init__(
self,
host: Optional[str] = None,
*,
follow_redirects: bool | None = None,
follow_redirects: Optional[bool] = None,
timeout: Any = None,
headers: Optional[Mapping[str, str]] = None,
**httpx_kwargs: Any,
Expand All @@ -648,8 +651,8 @@ def __init__(
self,
host: Optional[str] = None,
*,
client: httpx.AsyncClient | None = None,
follow_redirects: bool | None = None,
client: Optional[httpx.AsyncClient] = None,
follow_redirects: Optional[bool] = None,
timeout: Any = None,
headers: Optional[Mapping[str, str]] = None,
**httpx_kwargs: Any,
Expand Down

0 comments on commit 3572fc7

Please sign in to comment.