Skip to content

Commit a91cad2

Browse files
BruceWouaigneBruceWouaigne
authored andcommitted
Fix for pyton3.9
1 parent dccc854 commit a91cad2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

linkup/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def _get_search_params(
248248
output_type: Literal["searchResults", "sourcedAnswer", "structured"],
249249
structured_output_schema: Union[Type[BaseModel], str, None],
250250
include_images: Union[bool, None] = None,
251-
) -> Dict[str, str]:
252-
params: Dict[str, str] = dict(
251+
) -> Dict[str, Union[str, bool]]:
252+
params: Dict[str, Union[str, bool]] = dict(
253253
q=query,
254254
depth=depth,
255255
outputType=output_type,

linkup/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import List
1+
from typing import List, Union
22

33
from pydantic import BaseModel
44

@@ -41,7 +41,7 @@ class LinkupSearchResults(BaseModel):
4141
results: The results of the Linkup search.
4242
"""
4343

44-
results: List[LinkupSearchTextResult | LinkupSearchImageResult]
44+
results: List[Union[LinkupSearchTextResult | LinkupSearchImageResult]]
4545

4646

4747
class LinkupSource(BaseModel):

0 commit comments

Comments
 (0)