Skip to content

Commit 4b4ba01

Browse files
committed
removed more types from docstring
1 parent 08ce649 commit 4b4ba01

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

datacrunch/instances/instances.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __str__(self) -> str:
6565
"""Returns a JSON string representation of the instance.
6666
6767
Returns:
68-
str: JSON string containing all instance properties.
68+
JSON string containing all instance properties.
6969
"""
7070
return stringify_class_object_properties(self)
7171

@@ -93,7 +93,7 @@ def get(self, status: Optional[str] = None) -> List[Instance]:
9393
non-deleted instances.
9494
9595
Returns:
96-
List[Instance]: List of instance objects matching the criteria.
96+
List of instance objects matching the criteria.
9797
"""
9898
instances_dict = self._http_client.get(
9999
INSTANCES_ENDPOINT, params={'status': status}).json()
@@ -106,7 +106,7 @@ def get_by_id(self, id: str) -> Instance:
106106
id: Unique identifier of the instance to retrieve.
107107
108108
Returns:
109-
Instance: Instance object with the specified ID.
109+
Instance object with the specified ID.
110110
111111
Raises:
112112
HTTPError: If the instance is not found or other API error occurs.
@@ -149,7 +149,7 @@ def create(self,
149149
coupon: Optional coupon code for discounts.
150150
151151
Returns:
152-
Instance: The newly created instance object.
152+
The newly created instance object.
153153
154154
Raises:
155155
HTTPError: If instance creation fails or other API error occurs.
@@ -207,7 +207,7 @@ def is_available(self, instance_type: str, is_spot: bool = False, location_code:
207207
location_code: Optional datacenter location code.
208208
209209
Returns:
210-
bool: True if the instance type is available, False otherwise.
210+
True if the instance type is available, False otherwise.
211211
"""
212212
is_spot = str(is_spot).lower()
213213
query_params = {'isSpot': is_spot, 'location_code': location_code}
@@ -222,7 +222,7 @@ def get_availabilities(self, is_spot: Optional[bool] = None, location_code: Opti
222222
location_code: Optional datacenter location code to filter by.
223223
224224
Returns:
225-
List[Dict]: List of available instance types and their details.
225+
List of available instance types and their details.
226226
"""
227227
is_spot = str(is_spot).lower() if is_spot is not None else None
228228
query_params = {'isSpot': is_spot, 'locationCode': location_code}

0 commit comments

Comments
 (0)