Skip to content

Commit

Permalink
Fixes for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Oct 15, 2024
1 parent 9aaf795 commit 236e577
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pinecone/grpc/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def __init__(

self._endpoint_override = _endpoint_override

self.runner = GrpcRunner(index_name=index_name, config=config, grpc_config=grpc_config)
self.runner = GrpcRunner(
index_name=index_name, config=config, grpc_config=self.grpc_client_config
)
self.channel_factory = GrpcChannelFactory(
config=self.config, grpc_client_config=self.grpc_client_config, use_asyncio=False
)
Expand Down
4 changes: 3 additions & 1 deletion pinecone/grpc/grpc_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ async def wrapped():

return await wrapped()

def _prepare_metadata(self, user_provided_metadata: Dict[str, str]) -> Tuple[Tuple[str, str]]:
def _prepare_metadata(
self, user_provided_metadata: Dict[str, str]
) -> Tuple[Tuple[str, str], ...]:
return tuple(
(k, v)
for k, v in {
Expand Down

0 comments on commit 236e577

Please sign in to comment.