44from dataclasses import dataclass
55from typing import Any , Dict , List , Optional , Union , Sequence
66
7+ from .types import Model as ModelProtocol , Client
78from .metrics import Metric , Metrics
89from .dimensions import Dimension , Dimensions
910from .query import Query
@@ -20,7 +21,7 @@ class Model:
2021 description : Optional [str ] = None
2122
2223 def __post_init__ (self ):
23- self ._client : Optional [" Client" ] = None
24+ self ._client : Optional [Client ] = None
2425 self .metrics = Metrics (self )
2526 self .dimensions = Dimensions (self )
2627
@@ -34,7 +35,7 @@ def _repr_pretty_(self, p, cycle):
3435 else :
3536 p .text (str (self ))
3637
37- def _set_client (self , client : " Client" ) -> None :
38+ def _set_client (self , client : Client ) -> None :
3839 """Set the client reference for making API calls."""
3940 self ._client = client
4041
@@ -126,7 +127,7 @@ class Models:
126127
127128 Will fetch models from API on first access if not already cached.
128129 """
129- def __init__ (self , client : " Client" ):
130+ def __init__ (self , client : Client ):
130131 self ._client = client
131132 self ._models : Optional [Dict [str , Model ]] = None
132133
0 commit comments