+
    PjG                        R t ^ RIHt ^ RIHt ^ RIHtHt  ! R R]4      t	 ! R R]4      t
 ! R R	]4      t ! R
 R]4      t ! R R]4      t ! R R]]4      t ! R R]4      t ! R R]4      t ! R R]]4      t ! R R]]4      t ! R R]4      t ! R R]]4      t ! R R]4      t ! R R]4      t ! R  R!]4      t ! R" R#]4      t ! R$ R%]4      t ! R& R']4      t ! R( R)]4      t  ! R* R+]4      t! ! R, R-]"4      t# ! R. R/]"4      t$ ! R0 R1]4      t% ! R2 R3]4      t& ! R4 R5]4      t' ! R6 R7]4      t( ! R8 R9]4      t) ! R: R;])4      t* ! R< R=]4      t+ ! R> R?]4      t, ! R@ RA]4      t- ! RB RC]]-4      t. ! RD RE]/]-4      t0 ! RF RG]04      t1 ! RH RI]]"4      t2 ! RJ RK]4      t3 ! RL RM]34      t4 ! RN RO]34      t5 ! RP RQ]54      t6 ! RR RS]4      t7 ! RT RU]74      t8 ! RV RW]74      t9 ! RX RY]74      t: ! RZ R[]4      t; ! R\ R]]4      t< ! R^ R_]4      t= ! R` Ra]=4      t> ! Rb Rc]=4      t? ! Rd Re]4      t@ ! Rf Rg]@4      tARh# )izContains all custom errors.)Enum)Path)	HTTPErrorResponsec                   N   a a ] tR t^t oRtV3R lV 3R lltV3R ltRtVtV ;t	# )CacheNotFoundz9Exception thrown when the Huggingface cache is not found.c                6   < V ^8  d   QhRS[ RS[ S[,          /# )   msg	cache_dirstrr   )format__classdict__s   "o/Users/ahmed/devFolder/Ultron/claude-voice/gateway/.venv/lib/python3.14/site-packages/huggingface_hub/errors.py__annotate__CacheNotFound.__annotate__   s     # #C #C$J #    c                <   < \         SV `  ! V.VO5/ VB  W n        R # N)super__init__r   )selfr
   r   argskwargs	__class__s   &&&*,r   r   CacheNotFound.__init__   s    .t.v."r   c                6   < V ^8  d   Qh/ S[ S[,          ;R&   # )r	   r   r   )r   r   s   "r   r   r      s      Tz r   )r   )
__name__
__module____qualname____firstlineno____doc__r   __annotate_func____static_attributes____classdictcell____classcell__r   r   s   @@r   r   r      s     C# #  r   r   c                       ] tR t^tRtRtR# )CorruptedCacheExceptionzGException for any unexpected structure in the Huggingface cache-system. Nr   r   r    r!   r"   r$   r*   r   r   r)   r)      s    Qr   r)   c                       ] tR t^tRtRtR# )CachedRepoTreeNotFoundErrorzRaised by [`get_cached_repo_tree`] when no tree listing is cached for the requested revision.

The tree listing is populated as a side effect of [`snapshot_download`].
r*   Nr+   r*   r   r   r-   r-          r   r-   c                       ] tR t^$tRtRtR# )LocalTokenNotFoundErrorz0Raised if local token is required but not found.r*   Nr+   r*   r   r   r0   r0   $       :r   r0   c                       ] tR t^+tRtRtR# )	OIDCErrora*  Raised when keyless CI/CD auth via OIDC token exchange ("Trusted Publishers") cannot proceed.

Typically because `HF_OIDC_RESOURCE` is set but no id token is available: not running in a
supported CI provider and `HF_OIDC_ID_TOKEN` is unset.

See https://huggingface.co/docs/hub/trusted-publishers.
r*   Nr+   r*   r   r   r3   r3   +   s    r   r3   c                   .    ] tR t^8tRtRtRtRtRtRt	Rt
R# )	OAuthErrorCodezUKnown OAuth `error` codes returned by the Hub's token endpoint (RFC 6749 / RFC 8628).authorization_pending	slow_downexpired_tokenaccess_deniedinvalid_grantr*   N)r   r   r    r!   r"   AUTHORIZATION_PENDING	SLOW_DOWNEXPIRED_TOKENACCESS_DENIEDINVALID_GRANTr$   r*   r   r   r5   r5   8   s    _3I#M#M#Mr   r5   c                   F   a a ] tR t^Bt oRtRV3R lV 3R llltRtVtV ;t# )DeviceCodeErrora  Raised when the Device Code OAuth login flow (RFC 8628) or an OAuth token refresh fails.

Covers failures at any step: requesting the device code, polling for the token,
authorization denied/expired, or unexpected server responses.

Attributes:
    error_code (`str`, *optional*):
        The OAuth `error` code returned by the server, if any. Known values are listed in
        [`OAuthErrorCode`] but the server may return other codes.
c                4   < V ^8  d   QhRS[ RS[ R,          /# )r	   message
error_codeNr   )r   r   s   "r   r   DeviceCodeError.__annotate__N   s     % % %t %r   c                2   < \         SV `  V4       W n        R # r   )r   r   rD   )r   rC   rD   r   s   &&&r   r   DeviceCodeError.__init__N   s    !$r   )rD   r   	r   r   r    r!   r"   r   r$   r%   r&   r'   s   @@r   rA   rA   B   s     	% % %r   rA   c                       ] tR t^VtRtRtR# )OfflineModeIsEnabledzTRaised when a request is made but `HF_HUB_OFFLINE=1` is set as environment variable.r*   Nr+   r*   r   r   rK   rK   V   s    ^r   rK   c                   ~   a a ] tR t^Zt oRtRR/V3R lV 3R llltV3R lR lt]V3R lR	 l4       tR
 t	Rt
VtV ;t# )HfHubHTTPErrora>  
    HTTPError to inherit from for any custom HTTP Error raised in HF Hub.

    Any HTTPError is converted at least into a `HfHubHTTPError`. If some information is
    sent back by the server, it will be added to the error message.

    Added details:
    - Request ID sourced from headers in order of precedence: "X-Request-Id", "X-Amzn-Trace-Id", "X-Amz-Cf-Id".
    - Server error message from the header "X-Error-Message".
    - Server error message if we can found one in the response body.

    Example:
    ```py
        import httpx
        from huggingface_hub.utils import get_session, hf_raise_for_status, HfHubHTTPError

        response = get_session().post(...)
        try:
            hf_raise_for_status(response)
        except HfHubHTTPError as e:
            print(str(e)) # formatted message
            e.request_id, e.server_message # details returned by server

            # Complete the error message with additional information once it's raised
            e.append_to_message("
`create_commit` expects the repository to exist.")
            raise
    ```
    server_messageNc                :   < V ^8  d   QhRS[ RS[RS[ R,          /# )r	   rC   responserN   Nr   r   )r   r   s   "r   r   HfHubHTTPError.__annotate__x   s-     " "" 	"
 d
"r   c               ,  < VP                   P                  R 4      ;'       g?    VP                   P                  R4      ;'       g    VP                   P                  R4      V n        W0n        W n        VP
                  V n        \        SV `  V4       R# )zx-request-idzX-Amzn-Trace-Idzx-amz-cf-idN)headersget
request_idrN   rP   requestr   r   )r   rC   rP   rN   r   s   &&$$r   r   HfHubHTTPError.__init__x   s       0 3 3##$563 3##M2 	
 - ''!r   c                $   < V ^8  d   QhRS[ RR/# )r	   additional_messagereturnNrE   )r   r   s   "r   r   rR      s     I IC ID Ir   c                v    V P                   ^ ,          V,           3V P                   R,          ,           V n         R# )zFAppend additional information to the `HfHubHTTPError` initial message.:   NNN)r   )r   rZ   s   &&r   append_to_message HfHubHTTPError.append_to_message   s'    YYq\$668499R=H	r   c                >   < V ^8  d   QhRS[ RS[RS[ R,          RR/# )r	   rC   rP   rN   Nr[   rM   rQ   )r   r   s   "r   r   rR      s7     N NN%-N?BTzN	Nr   c                    V ! WVR 7      # ))rP   rN   r*   )clsrC   rP   rN   s   &&&&r   _reconstruct_hf_hub_http_error-HfHubHTTPError._reconstruct_hf_hub_http_error   s     7nMMr   c                r    V P                   P                  \        V 4      V P                  V P                  33# )zeFix pickling of Exception subclass with kwargs. We need to override __reduce_ex__ of the parent class)r   rc   r   rP   rN   )r   protocols   &&r   __reduce_ex__HfHubHTTPError.__reduce_ex__   s-    ==D	4==Z^ZmZm?noor   )r   rW   rV   rP   rN   )r   r   r    r!   r"   r   r^   classmethodrc   rg   r$   r%   r&   r'   s   @@r   rM   rM   Z   sL     :"
 &*" ""I I N N
p pr   rM   c                       ] tR t^tRtRtR# )InferenceTimeoutErrorzBError raised when a model is unavailable or the request times out.r*   Nr+   r*   r   r   rk   rk      s    Lr   rk   c                       ] tR t^tRtRtR# )InferenceEndpointErrorz8Generic exception when dealing with Inference Endpoints.r*   Nr+   r*   r   r   rm   rm      s    Br   rm   c                       ] tR t^tRtRtR# )InferenceEndpointTimeoutErrorz<Exception for timeouts while waiting for Inference Endpoint.r*   Nr+   r*   r   r   ro   ro      s    Fr   ro   c                       ] tR t^tRtRtR# )SafetensorsParsingErrorzRaised when failing to parse a safetensors file metadata.

This can be the case if the file is not a safetensors file or does not respect the specification.
r*   Nr+   r*   r   r   rq   rq      r.   r   rq   c                       ] tR t^tRtRtR# )NotASafetensorsRepoErrorzRaised when a repo is not a Safetensors repo i.e. doesn't have either a `model.safetensors` or a
`model.safetensors.index.json` file.
r*   Nr+   r*   r   r   rs   rs      s    r   rs   c                       ] tR t^tRtRtR# )TextGenerationErrorz3Generic error raised if text-generation went wrong.r*   Nr+   r*   r   r   ru   ru      s    =r   ru   c                       ] tR t^tRtRtR# )ValidationErrorzServer-side validation error.r*   Nr+   r*   r   r   rw   rw      s    'r   rw   c                       ] tR t^tRtR# )GenerationErrorr*   Nr   r   r    r!   r$   r*   r   r   ry   ry          r   ry   c                       ] tR t^tRtR# )OverloadedErrorr*   Nrz   r*   r   r   r}   r}      r{   r   r}   c                       ] tR t^tRtR# )IncompleteGenerationErrorr*   Nrz   r*   r   r   r   r      r{   r   r   c                       ] tR t^tRtR# )UnknownErrorr*   Nrz   r*   r   r   r   r      r{   r   r   c                       ] tR t^tRtRtR# )HFValidationErrorzGeneric exception thrown by `huggingface_hub` validators.

Inherits from [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError).
r*   Nr+   r*   r   r   r   r      r.   r   r   c                   B   a a ] tR t^t oRtV3R lV 3R lltRtVtV ;t# )
HfUriErrora$  Raised when an `hf://...` URI is malformed.

See [`parse_hf_uri`] and the
[HF URIs reference](https://huggingface.co/docs/huggingface_hub/main/en/package_reference/hf_uris)
for the canonical syntax.

Inherits from [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError).
c                &   < V ^8  d   QhRS[ RS[ /# )r	   urir
   rE   )r   r   s   "r   r   HfUriError.__annotate__   s     # #C #c #r   c                h   < Wn         W n        V'       d	   R V RV 2MRV 2p\        SV `  V4       R# )zInvalid HF URI 'z'. zInvalid HF URI. N)r   r
   r   r   )r   r   r
   full_msgr   s   &&& r   r   HfUriError.__init__   s;    7:%cU#cU3BRSVRW@X"r   )r
   r   rI   r'   s   @@r   r   r      s     # # #r   r   c                       ] tR t^tRtRtR# )DryRunErrorzXError triggered when a dry run is requested but cannot be performed (e.g. invalid repo).r*   Nr+   r*   r   r   r   r      s    br   r   c                       ] tR t^tRtRtR# )FileMetadataErrorzError triggered when the metadata of a file on the Hub cannot be retrieved (missing ETag or commit_hash).

Inherits from `OSError` for backward compatibility.
r*   Nr+   r*   r   r   r   r      r.   r   r   c                   4   a  ] tR tRt o RtRtV 3R ltRtV tR# )BucketNotFoundErrori  a  
Raised when trying to access a bucket that does not exist.

Attributes:
    bucket_id (`str` or `None`):
        The bucket id (namespace/name) that was not found, if it could be determined from the request URL.

Example:

```py
>>> from huggingface_hub import bucket_info
>>> bucket_info("<non_existent_bucket>")
(...)
huggingface_hub.errors.BucketNotFoundError: 404 Client Error. (Request ID: XXX)

Bucket Not Found for url: https://huggingface.co/api/buckets/namespace/name.
Please make sure you specified the correct bucket id (namespace/name).
If the bucket is private, make sure you are authenticated and your token has the required permissions.
```
Nc                4   < V ^8  d   Qh/ S[ R,          ;R&   # )r	   N	bucket_idrE   )r   r   s   "r   r    BucketNotFoundError.__annotate__  s     , Tz - r   r*   )	r   r   r    r!   r"   r   r#   r$   r%   r   s   @r   r   r     s     * !I-  r   r   c                   0   a  ] tR tRt o RtV 3R ltRtV tR# )JobNotFoundErrori  z
Raised when trying to access a Job that does not exist.

Attributes:
    job_id (`str`):
        The job id that was not found.
c                &   < V ^8  d   Qh/ S[ ;R&   # )r	   job_idrE   )r   r   s   "r   r   JobNotFoundError.__annotate__  s      K r   r*   N)r   r   r    r!   r"   r#   r$   r%   r   s   @r   r   r     s       r   r   c                   8   a  ] tR tRt o RtRtRtV 3R ltRtV t	R# )RepositoryNotFoundErrori-  a  
Raised when trying to access a hf.co URL with an invalid repository name, or
with a private repo name the user does not have access to.

Attributes:
    repo_id (`str` or `None`):
        The repo id that was not found, if it could be determined from the request URL.
    repo_type (`str` or `None`):
        The repo type ("model", "dataset", or "space"), if it could be determined from the request URL.

Example:

```py
>>> from huggingface_hub import model_info
>>> model_info("<non_existent_repository>")
(...)
huggingface_hub.errors.RepositoryNotFoundError: 401 Client Error. (Request ID: PvMw_VjBMjVdMz53WKIzP)

Repository Not Found for url: https://huggingface.co/api/models/%3Cnon_existent_repository%3E.
Please make sure you specified the correct `repo_id` and `repo_type`.
If the repo is private, make sure you are authenticated and your token has the required permissions.
Invalid username or password.
```
Nc                N   < V ^8  d   Qh/ S[ R,          ;R&   S[ R,          ;R&   # r	   Nrepo_id	repo_typerE   )r   r   s   "r   r   $RepositoryNotFoundError.__annotate__-  s'     4 4Z5 6 Tz 7 r   r*   
r   r   r    r!   r"   r   r   r#   r$   r%   r   s   @r   r   r   -  s     2 G I7  r   r   c                       ] tR tRtRtRtR# )GatedRepoErroriK  a  
Raised when trying to access a gated repository for which the user is not on the
authorized list.

Note: derives from `RepositoryNotFoundError` to ensure backward compatibility.

Example:

```py
>>> from huggingface_hub import model_info
>>> model_info("<gated_repository>")
(...)
huggingface_hub.errors.GatedRepoError: 403 Client Error. (Request ID: ViT1Bf7O_026LGSQuVqfa)

Cannot access gated repo for url https://huggingface.co/api/models/ardent-figment/gated-model.
Access to model ardent-figment/gated-model is restricted and you are not in the authorized list.
Visit https://huggingface.co/ardent-figment/gated-model to ask for access.
```
r*   Nr+   r*   r   r   r   r   K  s    r   r   c                       ] tR tRtRtRtR# )DisabledRepoErroria  a  
Raised when trying to access a repository that has been disabled by its author.

Example:

```py
>>> from huggingface_hub import dataset_info
>>> dataset_info("laion/laion-art")
(...)
huggingface_hub.errors.DisabledRepoError: 403 Client Error. (Request ID: Root=1-659fc3fa-3031673e0f92c71a2260dbe2;bc6f4dfb-b30a-4862-af0a-5cfe827610d8)

Cannot access repository for url https://huggingface.co/api/datasets/laion/laion-art.
Access to this resource is disabled.
```
r*   Nr+   r*   r   r   r   r   a      r   r   c                   8   a  ] tR tRt o RtRtRtV 3R ltRtV t	R# )RevisionNotFoundErroriv  a  
Raised when trying to access a hf.co URL with a valid repository but an invalid
revision.

Attributes:
    repo_id (`str` or `None`):
        The repo id, if it could be determined from the request URL.
    repo_type (`str` or `None`):
        The repo type ("model", "dataset", or "space"), if it could be determined from the request URL.

Example:

```py
>>> from huggingface_hub import hf_hub_download
>>> hf_hub_download('bert-base-cased', 'config.json', revision='<non-existent-revision>')
(...)
huggingface_hub.errors.RevisionNotFoundError: 404 Client Error. (Request ID: Mwhe_c3Kt650GcdKEFomX)

Revision Not Found for url: https://huggingface.co/bert-base-cased/resolve/%3Cnon-existent-revision%3E/config.json.
```
Nc                N   < V ^8  d   Qh/ S[ R,          ;R&   S[ R,          ;R&   # r   rE   )r   r   s   "r   r   "RevisionNotFoundError.__annotate__v  '     . 4Z/ 0 Tz 1 r   r*   r   r   s   @r   r   r   v       , G I1  r   r   c                       ] tR tRtRtRtR# )EntryNotFoundErrori  a  
Raised when entry not found, either locally or remotely.

Example:

```py
>>> from huggingface_hub import hf_hub_download
>>> hf_hub_download('bert-base-cased', '<non-existent-file>')
(...)
huggingface_hub.errors.RemoteEntryNotFoundError (...)
>>> hf_hub_download('bert-base-cased', '<non-existent-file>', local_files_only=True)
(...)
huggingface_hub.utils.errors.LocalEntryNotFoundError (...)
```
r*   Nr+   r*   r   r   r   r     r   r   r   c                   8   a  ] tR tRt o RtRtRtV 3R ltRtV t	R# )RemoteEntryNotFoundErrori  a  
Raised when trying to access a hf.co URL with a valid repository and revision
but an invalid filename.

Attributes:
    repo_id (`str` or `None`):
        The repo id, if it could be determined from the request URL.
    repo_type (`str` or `None`):
        The repo type ("model", "dataset", or "space"), if it could be determined from the request URL.

Example:

```py
>>> from huggingface_hub import hf_hub_download
>>> hf_hub_download('bert-base-cased', '<non-existent-file>')
(...)
huggingface_hub.errors.EntryNotFoundError: 404 Client Error. (Request ID: 53pNl6M0MxsnG5Sw8JA6x)

Entry Not Found for url: https://huggingface.co/bert-base-cased/resolve/main/%3Cnon-existent-file%3E.
```
Nc                N   < V ^8  d   Qh/ S[ R,          ;R&   S[ R,          ;R&   # r   rE   )r   r   s   "r   r   %RemoteEntryNotFoundError.__annotate__  r   r   r*   r   r   s   @r   r   r     r   r   r   c                   B   a a ] tR tRt oRtV3R lV 3R lltRtVtV ;t# )LocalEntryNotFoundErrori  a  
Raised when trying to access a file or snapshot that is not on the disk when network is
disabled or unavailable (connection issue). The entry may exist on the Hub.

Example:

```py
>>> from huggingface_hub import hf_hub_download
>>> hf_hub_download('bert-base-cased', '<non-cached-file>',  local_files_only=True)
(...)
huggingface_hub.errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False.
```
c                    < V ^8  d   QhRS[ /# )r	   rC   rE   )r   r   s   "r   r   $LocalEntryNotFoundError.__annotate__  s     " " "r   c                &   < \         SV `  V4       R # r   )r   r   )r   rC   r   s   &&r   r    LocalEntryNotFoundError.__init__  s    !r   r*   rI   r'   s   @@r   r   r     s     " " "r   r   c                   B   a a ] tR tRt oRtV3R lV 3R lltRtVtV ;t# )IncompleteSnapshotErrori  a  
Raised by [`snapshot_download`] when the Hub cannot be reached (offline, connection issue, or
`local_files_only=True`) and the cached snapshot is known to be incomplete: some files listed in
the repository's cached tree listing are missing from the local snapshot.

This is a subclass of [`LocalEntryNotFoundError`] for backward compatibility.

The `snapshot_path` attribute holds the path to the incomplete local snapshot, so a downstream library can locate
the latest cached files even though they are known to be incomplete.
c                &   < V ^8  d   QhRS[ RS[ /# )r	   rC   snapshot_pathrE   )r   r   s   "r   r   $IncompleteSnapshotError.__annotate__  s     + + +C +r   c                2   < \         SV `  V4       W n        R # r   )r   r   r   )r   rC   r   r   s   &&&r   r    IncompleteSnapshotError.__init__  s    !*r   )r   rI   r'   s   @@r   r   r     s     	+ + +r   r   c                       ] tR tRtRtRtR# )BadRequestErrori  a'  
Raised by `hf_raise_for_status` when the server returns a HTTP 400 error.

Example:

```py
>>> resp = httpx.post("hf.co/api/check", ...)
>>> hf_raise_for_status(resp, endpoint_name="check")
huggingface_hub.errors.BadRequestError: Bad request for check endpoint: {details} (Request ID: XXX)
```
r*   Nr+   r*   r   r   r   r     s    
r   r   c                       ] tR tRtRtRtR# )	DDUFErrori  z5Base exception for errors related to the DDUF format.r*   Nr+   r*   r   r   r   r     s    ?r   r   c                       ] tR tRtRtRtR# )DDUFCorruptedFileErrori  z1Exception thrown when the DDUF file is corrupted.r*   Nr+   r*   r   r   r   r         ;r   r   c                       ] tR tRtRtRtR# )DDUFExportErrori  z-Base exception for errors during DDUF export.r*   Nr+   r*   r   r   r   r     s    7r   r   c                       ] tR tRtRtRtR# )DDUFInvalidEntryNameErrori  z0Exception thrown when the entry name is invalid.r*   Nr+   r*   r   r   r   r     r1   r   r   c                       ] tR tRtRtRtR# )StrictDataclassErrori  z&Base exception for strict dataclasses.r*   Nr+   r*   r   r   r   r     s    0r   r   c                       ] tR tRtRtRtR# )StrictDataclassDefinitionErrori  z@Exception thrown when a strict dataclass is defined incorrectly.r*   Nr+   r*   r   r   r   r     s    Jr   r   c                   B   a a ] tR tRt oRtV3R lV 3R lltRtVtV ;t# )#StrictDataclassFieldValidationErrori  zLException thrown when a strict dataclass fails validation for a given field.c                &   < V ^8  d   QhRS[ RS[/# )r	   fieldcauser   	Exception)r   r   s   "r   r   0StrictDataclassFieldValidationError.__annotate__  s     ( (c () (r   c                x   < R V R2pVRVP                   P                   RV 2,          p\        SV `  V4       R# )zValidation error for field '':
    : Nr   r   r   r   )r   r   r   error_messager   s   &&& r   r   ,StrictDataclassFieldValidationError.__init__  s@    6ugR@6%//":":!;2eWEE'r   r*   rI   r'   s   @@r   r   r     s     V( ( (r   r   c                   B   a a ] tR tRt oRtV3R lV 3R lltRtVtV ;t# )#StrictDataclassClassValidationErrori  zOException thrown when a strict dataclass fails validation on a class validator.c                &   < V ^8  d   QhRS[ RS[/# )r	   	validatorr   r   )r   r   s   "r   r   0StrictDataclassClassValidationError.__annotate__  s     ( (# (i (r   c                x   < R V R2pVRVP                   P                   RV 2,          p\        SV `  V4       R# )z&Class validation error for validator 'r   r   r   Nr   )r   r   r   r   r   s   &&& r   r   ,StrictDataclassClassValidationError.__init__  s@    @2N6%//":":!;2eWEE'r   r*   rI   r'   s   @@r   r   r     s     Y( ( (r   r   c                       ] tR tRtRtRtR# )XetDownloadErrori%  z:Exception thrown when the download from Xet Storage fails.r*   Nr+   r*   r   r   r   r   %  s    Dr   r   c                       ] tR tRtRtRtR# )FileDuplicationErrori,  z1Raised when duplicating files across repos fails.r*   Nr+   r*   r   r   r   r   ,  r   r   r   c                       ] tR tRtRtRtR# )CLIErrori3  z7CLI error with clean message (no traceback by default).r*   Nr+   r*   r   r   r   r   3  s    Ar   r   c                       ] tR tRtRtRtR# )ConfirmationErrori7  zERaised when a confirmation prompt is declined (non-interactive mode).r*   Nr+   r*   r   r   r   r   7  s    Or   r   c                       ] tR tRtRtRtR# )CLIExtensionInstallErrori;  z(Error during CLI extension installation.r*   Nr+   r*   r   r   r   r   ;  s    2r   r   c                   J   a a ] tR tRt oRtRR/V3R lV 3R llltRtVtV ;t# )SandboxErroriB  a   Base exception for sandbox operations (see `huggingface_hub.Sandbox`).

Attributes:
    status_code: The HTTP status returned by the in-sandbox server, if the error
        originated from an API response (e.g. `404` for a missing file). `None` otherwise.
status_codeNc                8   < V ^8  d   QhRS[ RS[R,          RR/# )r	   rC   r   Nr[   )r   int)r   r   s   "r   r   SandboxError.__annotate__J  s&     ' ' 'S4Z '4 'r   c               2   < \         SV `  V4       W n        R # r   )r   r   r   )r   rC   r   r   s   &&$r   r   SandboxError.__init__J  s    !&r   )r   rI   r'   s   @@r   r   r   B  s      '$ ' ' 'r   r   c                   B   a a ] tR tRt oRtV3R lV 3R lltRtVtV ;t# )SandboxCommandErroriO  zRaised when a command run in a sandbox exits with a non-zero code.

Attributes:
    cmd: The command that failed.
    result: The full `SandboxCommandResult` (exit_code, stdout, stderr, ...).
c                   < V ^8  d   QhRR/# )r	   r[   Nr*   )r   r   s   "r   r    SandboxCommandError.__annotate__W  s     
N 
Nt 
Nr   c                  < Wn         W n        VP                  '       d   VP                  R	R MRpVP                  '       d   RpM-VP                  e   RVP                   2pMRVP
                   2p\        SV `  RV: RV RV 24       R# )
i  Nz<empty>z	timed outzwas killed by signal zexited with code zCommand  z
. stderr:
i)cmdresultstderr	timed_outsignal	exit_coder   r   )r   r   r   stderr_tailreasonr   s   &&&  r   r   SandboxCommandError.__init__W  s    /5}}}fmmEF+) F]]&,V]]O<F()9)9(:;F8C7!F8;{mLMr   )r   r   rI   r'   s   @@r   r   r   O  s     
N 
N 
Nr   r   N)Br"   enumr   pathlibr   httpxr   r   r   r   r)   r-   EnvironmentErrorr0   r3   r   r5   rA   ConnectionErrorrK   OSErrorrM   TimeoutErrorrk   rm   ro   rq   rs   ru   rw   ry   r}   r   r   
ValueErrorr   r   r   r   r   r   r   r   r   r   r   r   FileNotFoundErrorr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r*   r   r   <module>r     s   !   %#I #Ri R) ;. ;	 $S$ $%i %(_? _;pY ;pBMI| MCY CG$:L Gi y >) >
() (	) 		) 		 3 		& 	
 # #(c' c !. !8	~ 	!n !<, , *!N !8 $!~/A !6"/1C "&+5 +$nj "@	 @<Y <8i 8; ;19 1K%9 K(*> ((*> (Ey E<9 <By BP P3x 3
'9 
'N, Nr   