Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertCraigie committed Jul 8, 2024
1 parent ad5010e commit 457f899
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/anthropic/lib/vertex/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,7 @@ def copy(

return self.__class__(
region=region if is_given(region) else self.region,
project_id=(
self.project_id if isinstance(project_id, NotGiven) and self.project_id is not None else project_id
),
project_id=project_id if is_given(project_id) else self.project_id or NOT_GIVEN,
access_token=access_token or self.access_token,
credentials=credentials or self.credentials,
base_url=base_url or self.base_url,
Expand Down Expand Up @@ -423,9 +421,7 @@ def copy(

return self.__class__(
region=region if is_given(region) else self.region,
project_id=(
self.project_id if isinstance(project_id, NotGiven) and self.project_id is not None else project_id
),
project_id=project_id if is_given(project_id) else self.project_id or NOT_GIVEN,
access_token=access_token or self.access_token,
credentials=credentials or self.credentials,
base_url=base_url or self.base_url,
Expand Down

0 comments on commit 457f899

Please sign in to comment.