99from pydantic import BaseModel , ValidatorFunctionWrapHandler , ValidationError , ConfigDict
1010
1111from flame_hub ._exceptions import new_hub_api_error_from_response
12- from flame_hub ._auth_flows import PasswordAuth , RobotAuth
12+ from flame_hub ._auth_flows import PasswordAuth , ClientAuth
1313
1414
1515class UNSET (BaseModel ):
@@ -395,7 +395,7 @@ class BaseClient(object):
395395 ----------
396396 base_url : :py:class:`str`
397397 Base URL of the Hub service.
398- auth : :py:class:`.PasswordAuth` | :py:class:`.RobotAuth `, optional
398+ auth : :py:class:`.PasswordAuth` | :py:class:`.ClientAuth `, optional
399399 Authenticator which is used to authenticate the client at the FLAME Hub instance. Defaults to :any:`None`.
400400 **kwargs : :py:class:`Unpack`\\ [:py:class:`~flame_hub._base_client.ClientKwargs`]
401401 Currently used to pass an already instantiated HTTP client via the ``client`` keyword argument to bypass the
@@ -406,7 +406,7 @@ class BaseClient(object):
406406 :py:class:`.AuthClient`, :py:class:`.CoreClient`, :py:class:`.StorageClient`
407407 """
408408
409- def __init__ (self , base_url : str , auth : PasswordAuth | RobotAuth = None , ** kwargs : te .Unpack [ClientKwargs ]):
409+ def __init__ (self , base_url : str , auth : PasswordAuth | ClientAuth = None , ** kwargs : te .Unpack [ClientKwargs ]):
410410 client = kwargs .get ("client" , None )
411411 # Set a read timeout of 20 seconds here because the endpoint for registry projects is slow.
412412 self ._client = client or httpx .Client (auth = auth , base_url = base_url , timeout = httpx .Timeout (5 , read = 20 ))
0 commit comments