Skip to content

Commit 6b7a7dc

Browse files
authored
refactor(vertex): remove redundant isinstance check in load_auth (#1387)
1 parent 28a0eb5 commit 6b7a7dc

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/anthropic/lib/vertex/_auth.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ def load_auth(*, project_id: str | None) -> tuple[Credentials, str]:
3535
if not project_id:
3636
raise ValueError("Could not resolve project_id")
3737

38-
if not isinstance(project_id, str):
39-
raise TypeError(f"Expected project_id to be a str but got {type(project_id)}")
40-
4138
return credentials, project_id
4239

4340

0 commit comments

Comments
 (0)