Skip to content

Commit 2b4773e

Browse files
authored
refactor: add BoundModelBase model property type (#539)
Helps the type checkers to detect mistakes.
1 parent c3cd1c9 commit 2b4773e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hcloud/core/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
if TYPE_CHECKING:
77
from .._client import Client
8+
from .domain import BaseDomain
89

910

1011
class ResourceClientBase:
@@ -72,7 +73,7 @@ def __init__(self, client: Client):
7273
class BoundModelBase:
7374
"""Bound Model Base"""
7475

75-
model: Any
76+
model: type[BaseDomain]
7677

7778
def __init__(
7879
self,

0 commit comments

Comments
 (0)