From 0ee759856cb1352f6cc538b7ef86a91cd20380f2 Mon Sep 17 00:00:00 2001 From: Jonas L Date: Mon, 25 Sep 2023 12:57:31 +0200 Subject: [PATCH] fix: missing BaseDomain base class inheritance (#303) --- hcloud/datacenters/domain.py | 2 +- hcloud/firewalls/domain.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hcloud/datacenters/domain.py b/hcloud/datacenters/domain.py index 1c59bfa..05d5f79 100644 --- a/hcloud/datacenters/domain.py +++ b/hcloud/datacenters/domain.py @@ -36,7 +36,7 @@ def __init__( self.server_types = server_types -class DatacenterServerTypes: +class DatacenterServerTypes(BaseDomain): """DatacenterServerTypes Domain :param available: List[:class:`BoundServerTypes `] diff --git a/hcloud/firewalls/domain.py b/hcloud/firewalls/domain.py index d294fb8..22e8c51 100644 --- a/hcloud/firewalls/domain.py +++ b/hcloud/firewalls/domain.py @@ -48,7 +48,7 @@ def __init__( self.created = isoparse(created) if created else None -class FirewallRule: +class FirewallRule(BaseDomain): """Firewall Rule Domain :param direction: str @@ -125,7 +125,7 @@ def to_payload(self) -> dict[str, Any]: return payload -class FirewallResource: +class FirewallResource(BaseDomain): """Firewall Used By Domain :param type: str