@@ -45,7 +45,7 @@ def __init__(
4545 :param instance_id: the instance id the volume is attached to, None if detached
4646 :type instance_id: str
4747 :param ssh_key_ids: list of ssh keys ids
48- :type ssh_key_ids: List [str]
48+ :type ssh_key_ids: list [str]
4949 :param deleted_at: the time the volume was deleted (UTC), defaults to None
5050 :type deleted_at: str, optional
5151 """
@@ -157,7 +157,7 @@ def ssh_key_ids(self) -> list[str]:
157157 """Get the SSH key IDs of the instance.
158158
159159 :return: SSH key IDs
160- :rtype: List [str]
160+ :rtype: list [str]
161161 """
162162 return self ._ssh_key_ids
163163
@@ -215,7 +215,7 @@ def get(self, status: str = None) -> list[Volume]:
215215 :param status: optional, status of the volumes, defaults to None
216216 :type status: str, optional
217217 :return: list of volume details objects
218- :rtype: List [Volume]
218+ :rtype: list [Volume]
219219 """
220220 volumes_dict = self ._http_client .get (VOLUMES_ENDPOINT , params = {'status' : status }).json ()
221221 return list (map (Volume .create_from_dict , volumes_dict ))
@@ -236,7 +236,7 @@ def get_in_trash(self) -> list[Volume]:
236236 """Get all volumes that are in trash.
237237
238238 :return: list of volume details objects
239- :rtype: List [Volume]
239+ :rtype: list [Volume]
240240 """
241241 volumes_dicts = self ._http_client .get (VOLUMES_ENDPOINT + '/trash' ).json ()
242242
@@ -282,7 +282,7 @@ def attach(self, id_list: list[str] | str, instance_id: str) -> None:
282282 Note: the instance needs to be shut-down (offline)
283283
284284 :param id_list: list of volume ids, or a volume id
285- :type id_list: Union[List [str], str]
285+ :type id_list: Union[list [str], str]
286286 :param instance_id: instance id the volume(s) will be attached to
287287 :type instance_id: str
288288 """
@@ -301,7 +301,7 @@ def detach(self, id_list: list[str] | str) -> None:
301301 Note: the instances need to be shut-down (offline)
302302
303303 :param id_list: list of volume ids, or a volume id
304- :type id_list: Union[List [str], str]
304+ :type id_list: Union[list [str], str]
305305 """
306306 payload = {
307307 'id' : id_list ,
@@ -315,13 +315,13 @@ def clone(self, id: str, name: str = None, type: str = None) -> Volume:
315315 """Clone a volume or multiple volumes.
316316
317317 :param id: volume id or list of volume ids
318- :type id: str or List [str]
318+ :type id: str or list [str]
319319 :param name: new volume name
320320 :type name: str
321321 :param type: volume type
322322 :type type: str, optional
323323 :return: the new volume object, or a list of volume objects if cloned mutliple volumes
324- :rtype: Volume or List [Volume]
324+ :rtype: Volume or list [Volume]
325325 """
326326 payload = {'id' : id , 'action' : VolumeActions .CLONE , 'name' : name , 'type' : type }
327327
@@ -342,7 +342,7 @@ def rename(self, id_list: list[str] | str, name: str) -> None:
342342 """Rename multiple volumes or single volume.
343343
344344 :param id_list: list of volume ids, or a volume id
345- :type id_list: Union[List [str], str]
345+ :type id_list: Union[list [str], str]
346346 :param name: new name
347347 :type name: str
348348 """
@@ -355,7 +355,7 @@ def increase_size(self, id_list: list[str] | str, size: int) -> None:
355355 """Increase size of multiple volumes or single volume.
356356
357357 :param id_list: list of volume ids, or a volume id
358- :type id_list: Union[List [str], str]
358+ :type id_list: Union[list [str], str]
359359 :param size: new size in GB
360360 :type size: int
361361 """
@@ -374,7 +374,7 @@ def delete(self, id_list: list[str] | str, is_permanent: bool = False) -> None:
374374 Note: if attached to any instances, they need to be shut-down (offline)
375375
376376 :param id_list: list of volume ids, or a volume id
377- :type id_list: Union[List [str], str]
377+ :type id_list: Union[list [str], str]
378378 """
379379 payload = {
380380 'id' : id_list ,
0 commit comments