Skip to content

Commit

Permalink
fix: missing BaseDomain base class inheritance (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Sep 25, 2023
1 parent f18c9a6 commit 0ee7598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hcloud/datacenters/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
self.server_types = server_types


class DatacenterServerTypes:
class DatacenterServerTypes(BaseDomain):
"""DatacenterServerTypes Domain
:param available: List[:class:`BoundServerTypes <hcloud.server_types.client.BoundServerTypes>`]
Expand Down
4 changes: 2 additions & 2 deletions hcloud/firewalls/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0ee7598

Please sign in to comment.