From 96216048c9ba13b6286d584c2dd0ec440f484105 Mon Sep 17 00:00:00 2001 From: "Jonas L." Date: Mon, 19 Aug 2024 20:03:43 +0200 Subject: [PATCH] fix: prices properties are list of dict (#438) Closes #437 --- hcloud/load_balancer_types/domain.py | 4 ++-- hcloud/server_types/domain.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hcloud/load_balancer_types/domain.py b/hcloud/load_balancer_types/domain.py index 6ef4c28..9142cb5 100644 --- a/hcloud/load_balancer_types/domain.py +++ b/hcloud/load_balancer_types/domain.py @@ -20,7 +20,7 @@ class LoadBalancerType(BaseDomain, DomainIdentityMixin): Max amount of targets the Load Balancer can handle :param max_assigned_certificates: int Max amount of certificates the Load Balancer can serve - :param prices: Dict + :param prices: List of dict Prices in different locations """ @@ -46,7 +46,7 @@ def __init__( max_services: int | None = None, max_targets: int | None = None, max_assigned_certificates: int | None = None, - prices: dict | None = None, + prices: list[dict] | None = None, ): self.id = id self.name = name diff --git a/hcloud/server_types/domain.py b/hcloud/server_types/domain.py index d026f86..c2031c6 100644 --- a/hcloud/server_types/domain.py +++ b/hcloud/server_types/domain.py @@ -21,7 +21,7 @@ class ServerType(BaseDomain, DomainIdentityMixin): Memory a server of this type will have in GB :param disk: int Disk size a server of this type will have in GB - :param prices: Dict + :param prices: List of dict Prices in different locations :param storage_type: str Type of server boot drive. Local has higher speed. Network has better availability. Choices: `local`, `network` @@ -69,7 +69,7 @@ def __init__( cores: int | None = None, memory: int | None = None, disk: int | None = None, - prices: dict | None = None, + prices: list[dict] | None = None, storage_type: str | None = None, cpu_type: str | None = None, architecture: str | None = None,