11from typing import Any , Generic , NoReturn , TypeVar
22from typing_extensions import Self
33
4- from docker import APIClient
4+ from docker import DockerClient
55
66_T = TypeVar ("_T" , bound = Model )
77
88class Model :
99 id_attribute : str
10- client : APIClient | None
10+ client : DockerClient | None
1111 collection : Collection [Self ] | None
1212 attrs : dict [str , Any ]
1313 def __init__ (
14- self , attrs : dict [str , Any ] | None = None , client : APIClient | None = None , collection : Collection [Self ] | None = None
14+ self , attrs : dict [str , Any ] | None = None , client : DockerClient | None = None , collection : Collection [Self ] | None = None
1515 ) -> None : ...
1616 def __eq__ (self , other ) -> bool : ...
1717 def __hash__ (self ) -> int : ...
@@ -23,8 +23,8 @@ class Model:
2323
2424class Collection (Generic [_T ]):
2525 model : type [_T ]
26- client : APIClient
27- def __init__ (self , client : APIClient | None = None ) -> None : ...
26+ client : DockerClient
27+ def __init__ (self , client : DockerClient | None = None ) -> None : ...
2828 def __call__ (self , * args , ** kwargs ) -> NoReturn : ...
2929 def list (self ) -> list [_T ]: ...
3030 def get (self , key : str ) -> _T : ...
0 commit comments