Skip to content

Commit ed00e39

Browse files
authored
doc: fix {ServersClient,BoundServer}.create_image return type (#118)
1 parent 3fb9215 commit ed00e39

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

hcloud/servers/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def disable_rescue(self):
186186
return self._client.disable_rescue(self)
187187

188188
def create_image(self, description=None, type=None, labels=None):
189-
# type: (str, str, Optional[Dict[str, str]]) -> BoundAction
189+
# type: (str, str, Optional[Dict[str, str]]) -> CreateImageResponse
190190
"""Creates an image (snapshot) from a server by copying the contents of its disks.
191191
192192
:param description: str (optional)
@@ -196,7 +196,7 @@ def create_image(self, description=None, type=None, labels=None):
196196
Choices: snapshot, backup
197197
:param labels: Dict[str, str]
198198
User-defined labels (key-value pairs)
199-
:return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
199+
:return: :class:`CreateImageResponse <hcloud.images.domain.CreateImageResponse>`
200200
"""
201201
return self._client.create_image(self, description, type, labels)
202202

@@ -679,7 +679,7 @@ def create_image(self, server, description=None, type=None, labels=None):
679679
Choices: snapshot, backup
680680
:param labels: Dict[str, str]
681681
User-defined labels (key-value pairs)
682-
:return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
682+
:return: :class:`CreateImageResponse <hcloud.images.domain.CreateImageResponse>`
683683
"""
684684
data = {}
685685
if description is not None:

0 commit comments

Comments
 (0)