Skip to content

Commit 2bf8d68

Browse files
committed
Changes made as requested
1 parent ad7e7fa commit 2bf8d68

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyatlan/client/credential.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,19 @@ def __init__(self, client: ApiCaller):
3737
self._client = client
3838

3939
@validate_arguments
40-
def creator(
41-
self, credential: Credential, test: Optional[bool] = True
42-
) -> CredentialResponse:
40+
def creator(self, credential: Credential, test: bool = True) -> CredentialResponse:
4341
"""
4442
Create a new credential.
4543
4644
:param credential: provide full details of the credential's to be created.
47-
:param test: whether to validate the credentials (True) or skip validation (False) before creation.
45+
:param test: whether to validate the credentials (`True`) or skip validation
46+
(`False`) before creation, defaults to `True`.
4847
:returns: A CredentialResponse instance.
4948
:raises ValidationError: If the provided `credential` is invalid.
5049
"""
5150
raw_json = self._client._call_api(
5251
api=CREATE_CREDENTIALS.format_path_with_params(),
53-
query_params={"testCredential": f"{test}"},
52+
query_params={"testCredential": test},
5453
request_obj=credential,
5554
)
5655
return CredentialResponse(**raw_json)

0 commit comments

Comments
 (0)