Skip to content

Commit 1e2b0a9

Browse files
committed
[changes] copilot suggestions
1 parent a532c90 commit 1e2b0a9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyatlan/client/atlan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def __init__(self, **data):
169169
super().__init__(**data)
170170
self._request_params = (
171171
{"headers": {"authorization": f"Bearer {self.api_key}"}}
172-
if self.api_key
172+
if self.api_key and self.api_key.strip()
173173
else {"headers": {}}
174174
)
175175
# Configure httpx client with the provided retry settings

pyatlan/pkg/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def get_client(
108108

109109
async def get_client_async(
110110
impersonate_user_id: str, set_pkg_headers: Optional[bool] = False
111-
):
111+
) -> AsyncAtlanClient:
112112
"""
113113
Set up the default async Atlan client, based on environment variables.
114114
This will use an API token if found in ATLAN_API_KEY, and will fallback to attempting to impersonate a user if

0 commit comments

Comments
 (0)