Skip to content

Commit bb34df9

Browse files
authored
fix: ineffective doc strings (#266)
1 parent 68bb0f2 commit bb34df9

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

hcloud/certificates/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ def update(
269269
return BoundCertificate(self, response["certificate"])
270270

271271
def delete(self, certificate: Certificate | BoundCertificate) -> bool:
272-
self._client.request(
273-
url=f"/certificates/{certificate.id}",
274-
method="DELETE",
275-
)
276272
"""Deletes a certificate.
277273
278274
:param certificate: :class:`BoundCertificate <hcloud.certificates.client.BoundCertificate>` or :class:`Certificate <hcloud.certificates.domain.Certificate>`
279275
:return: True
280276
"""
277+
self._client.request(
278+
url=f"/certificates/{certificate.id}",
279+
method="DELETE",
280+
)
281281
# Return always true, because the API does not return an action for it. When an error occurs a HcloudAPIException will be raised
282282
return True
283283

hcloud/ssh_keys/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ def update(
183183
return BoundSSHKey(self, response["ssh_key"])
184184

185185
def delete(self, ssh_key: SSHKey | BoundSSHKey) -> bool:
186-
self._client.request(url=f"/ssh_keys/{ssh_key.id}", method="DELETE")
187186
"""Deletes an SSH key. It cannot be used anymore.
188187
189188
:param ssh_key: :class:`BoundSSHKey <hcloud.ssh_keys.client.BoundSSHKey>` or :class:`SSHKey <hcloud.ssh_keys.domain.SSHKey>`
190189
:return: True
191190
"""
191+
self._client.request(url=f"/ssh_keys/{ssh_key.id}", method="DELETE")
192192
# Return always true, because the API does not return an action for it. When an error occurs a HcloudAPIException will be raised
193193
return True

0 commit comments

Comments
 (0)