Skip to content

Commit 6d46d06

Browse files
authored
feat: add domain attribute type hints to bound models (#300)
1 parent 55d2b20 commit 6d46d06

18 files changed

Lines changed: 18 additions & 18 deletions

File tree

hcloud/actions/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .._client import Client
1212

1313

14-
class BoundAction(BoundModelBase):
14+
class BoundAction(BoundModelBase, Action):
1515
_client: ActionsClient
1616

1717
model = Action

hcloud/certificates/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .._client import Client
1616

1717

18-
class BoundCertificate(BoundModelBase):
18+
class BoundCertificate(BoundModelBase, Certificate):
1919
_client: CertificatesClient
2020

2121
model = Certificate

hcloud/datacenters/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .._client import Client
1212

1313

14-
class BoundDatacenter(BoundModelBase):
14+
class BoundDatacenter(BoundModelBase, Datacenter):
1515
_client: DatacentersClient
1616

1717
model = Datacenter

hcloud/firewalls/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .._client import Client
1818

1919

20-
class BoundFirewall(BoundModelBase):
20+
class BoundFirewall(BoundModelBase, Firewall):
2121
_client: FirewallsClient
2222

2323
model = Firewall

hcloud/floating_ips/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from ..servers import BoundServer, Server
1414

1515

16-
class BoundFloatingIP(BoundModelBase):
16+
class BoundFloatingIP(BoundModelBase, FloatingIP):
1717
_client: FloatingIPsClient
1818

1919
model = FloatingIP

hcloud/images/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .._client import Client
1111

1212

13-
class BoundImage(BoundModelBase):
13+
class BoundImage(BoundModelBase, Image):
1414
_client: ImagesClient
1515

1616
model = Image

hcloud/isos/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from .._client import Client
1111

1212

13-
class BoundIso(BoundModelBase):
13+
class BoundIso(BoundModelBase, Iso):
1414
_client: IsosClient
1515

1616
model = Iso

hcloud/load_balancer_types/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .._client import Client
1010

1111

12-
class BoundLoadBalancerType(BoundModelBase):
12+
class BoundLoadBalancerType(BoundModelBase, LoadBalancerType):
1313
_client: LoadBalancerTypesClient
1414

1515
model = LoadBalancerType

hcloud/load_balancers/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
from ..networks import Network
3535

3636

37-
class BoundLoadBalancer(BoundModelBase):
37+
class BoundLoadBalancer(BoundModelBase, LoadBalancer):
3838
_client: LoadBalancersClient
3939

4040
model = LoadBalancer

hcloud/locations/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from .._client import Client
1010

1111

12-
class BoundLocation(BoundModelBase):
12+
class BoundLocation(BoundModelBase, Location):
1313
_client: LocationsClient
1414

1515
model = Location

0 commit comments

Comments
 (0)