Skip to content

Commit 0ee7598

Browse files
authored
fix: missing BaseDomain base class inheritance (#303)
1 parent f18c9a6 commit 0ee7598

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

hcloud/datacenters/domain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(
3636
self.server_types = server_types
3737

3838

39-
class DatacenterServerTypes:
39+
class DatacenterServerTypes(BaseDomain):
4040
"""DatacenterServerTypes Domain
4141
4242
:param available: List[:class:`BoundServerTypes <hcloud.server_types.client.BoundServerTypes>`]

hcloud/firewalls/domain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
self.created = isoparse(created) if created else None
4949

5050

51-
class FirewallRule:
51+
class FirewallRule(BaseDomain):
5252
"""Firewall Rule Domain
5353
5454
:param direction: str
@@ -125,7 +125,7 @@ def to_payload(self) -> dict[str, Any]:
125125
return payload
126126

127127

128-
class FirewallResource:
128+
class FirewallResource(BaseDomain):
129129
"""Firewall Used By Domain
130130
131131
:param type: str

0 commit comments

Comments
 (0)