Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Nov 14, 2024
1 parent d628e0e commit b2e7b54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pinecone/grpc/index_grpc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Optional, Dict, Union, List, Tuple, Any, TypedDict, Iterable, cast
from typing import Optional, Dict, Union, List, Iterable, cast

from google.protobuf import json_format

Expand Down Expand Up @@ -64,13 +64,15 @@ def __init__(
config: Config,
channel: Optional[Channel] = None,
grpc_config: Optional[GRPCClientConfig] = None,
pool_threads: Optional[int] = None,
_endpoint_override: Optional[str] = None,
):
super().__init__(
index_name=index_name,
config=config,
channel=channel,
grpc_config=grpc_config,
pool_threads=pool_threads,
_endpoint_override=_endpoint_override,
use_asyncio=False,
)
Expand Down
2 changes: 2 additions & 0 deletions pinecone/grpc/index_grpc_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@ def __init__(
config: Config,
channel: Optional[Channel] = None,
grpc_config: Optional[GRPCClientConfig] = None,
pool_threads: Optional[int] = None,
_endpoint_override: Optional[str] = None,
):
super().__init__(
index_name=index_name,
config=config,
channel=channel,
grpc_config=grpc_config,
pool_threads=pool_threads,
_endpoint_override=_endpoint_override,
use_asyncio=True,
)
Expand Down

0 comments on commit b2e7b54

Please sign in to comment.