Skip to content

Commit 990bfe4

Browse files
committed
mypy fixes
1 parent a58be51 commit 990bfe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pinecone/admin/admin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __init__(
6464
if client_id is not None:
6565
self._client_id = client_id
6666
else:
67-
self._client_id = os.environ.get("PINECONE_CLIENT_ID", None)
67+
self._client_id = os.environ.get("PINECONE_CLIENT_ID", "")
6868
if self._client_id is None or self._client_id == "":
6969
raise ValueError(
7070
"client_id is not set or is empty. Pass client_id to the Admin constructor or set the PINECONE_CLIENT_ID environment variable."
@@ -73,7 +73,7 @@ def __init__(
7373
if client_secret is not None:
7474
self._client_secret = client_secret
7575
else:
76-
self._client_secret = os.environ.get("PINECONE_CLIENT_SECRET", None)
76+
self._client_secret = os.environ.get("PINECONE_CLIENT_SECRET", "")
7777
if self._client_secret is None or self._client_secret == "":
7878
raise ValueError(
7979
"client_secret is not set or is empty. Pass client_secret to the Admin constructor or set the PINECONE_CLIENT_SECRET environment variable."

0 commit comments

Comments
 (0)