Skip to content

Commit 9621604

Browse files
authored
fix: prices properties are list of dict (#438)
Closes #437
1 parent 1894278 commit 9621604

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hcloud/load_balancer_types/domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class LoadBalancerType(BaseDomain, DomainIdentityMixin):
2020
Max amount of targets the Load Balancer can handle
2121
:param max_assigned_certificates: int
2222
Max amount of certificates the Load Balancer can serve
23-
:param prices: Dict
23+
:param prices: List of dict
2424
Prices in different locations
2525
2626
"""
@@ -46,7 +46,7 @@ def __init__(
4646
max_services: int | None = None,
4747
max_targets: int | None = None,
4848
max_assigned_certificates: int | None = None,
49-
prices: dict | None = None,
49+
prices: list[dict] | None = None,
5050
):
5151
self.id = id
5252
self.name = name

hcloud/server_types/domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ServerType(BaseDomain, DomainIdentityMixin):
2121
Memory a server of this type will have in GB
2222
:param disk: int
2323
Disk size a server of this type will have in GB
24-
:param prices: Dict
24+
:param prices: List of dict
2525
Prices in different locations
2626
:param storage_type: str
2727
Type of server boot drive. Local has higher speed. Network has better availability. Choices: `local`, `network`
@@ -69,7 +69,7 @@ def __init__(
6969
cores: int | None = None,
7070
memory: int | None = None,
7171
disk: int | None = None,
72-
prices: dict | None = None,
72+
prices: list[dict] | None = None,
7373
storage_type: str | None = None,
7474
cpu_type: str | None = None,
7575
architecture: str | None = None,

0 commit comments

Comments
 (0)