+
    –°³jI  ã                   ó¢  € 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      t/ ! RF RG]0].4      t1 ! RH RI]14      t2 ! RJ RK]]"4      t3 ! RL RM]4      t4 ! RN RO]44      t5 ! RP RQ]44      t6 ! RR RS]64      t7 ! RT RU]4      t8 ! RV RW]84      t9 ! RX RY]84      t: ! RZ R[]84      t; ! R\ R]]4      t< ! R^ R_]4      t= ! R` Ra]4      t> ! Rb Rc]>4      t? ! Rd Re]>4      t@ ! Rf Rg]4      tA ! Rh Ri]A4      tBRj# )kz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   "€ÚW/home/luca/screen-checking/.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   ø‡ ‚ ñ ‘T�zÑò 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# )ÚCachedRepoTreeNotFoundErrorz¨Raised 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'   € à—Y‘Y˜q•\Ð$6Õ6Ð8¸4¿9¹9ÀR½=Õ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Ù?BÀT½zð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   € ñ �7¸nÔ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^×ZmÑZmÐ?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# )ÚSafetensorsParsingErrorz�Raised 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# )ÚNotASafetensorsRepoErrorz†Raised 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# )ÚHFValidationErrorz—Generic 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:Ð% c U¨#¨c¨UÑ3ÐBRÐSVÐRWÐ@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# )ÚFileMetadataErrorzŸError 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   ø‡ ‚ ñ, �T�zÑ ò- 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 �4�ZÑñ5 ñ6 �T�zÑ ò7 r   r*   ©
r   r   r    r!   r"   rŸ   r    r#   r$   r%   r•   s   @r   rœ   rœ   -  s   ø‡ € ñð2 €GØ €I÷7 ƒ 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  ó'   ø‡ ‚ ñ. �4�ZÑñ/ ñ0 �T�zÑ ò1 r   r*   r¢   r•   s   @r   r©   r©   v  ó   ø‡ € ñð, €GØ €I÷1 ƒ r   r©   c                   ó   € ] tR tRtRtRtR# )ÚRevisionResolutionErrori‘  zé
Raised by [`HfApi.resolve_revision`] when a revision cannot be resolved to a commit hash: the Hub could not be
reached (offline mode, connection error, timeout, Hub downtime, ...) and no matching entry was found in the
local cache.
r*   Nr+   r*   r   r   r¯   r¯   ‘  s   † õ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@   ø€ Ø6°u°g¸RÐ@ˆØ˜6 %§/¡/×":Ñ":Ð!;¸2¸e¸WÐ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 %§/¡/×":Ñ":Ð!;¸2¸e¸WÐ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# )ÚFileDuplicationErrori4  z1Raised when duplicating files across repos fails.r*   Nr+   r*   r   r   rë   rë   4  rÉ   r   rë   c                   ó   € ] tR tRtRtRtR# )ÚCLIErrori;  z7CLI error with clean message (no traceback by default).r*   Nr+   r*   r   r   rí   rí   ;  s   † ÝAr   rí   c                   ó   € ] tR tRtRtRtR# )ÚConfirmationErrori?  zERaised when a confirmation prompt is declined (non-interactive mode).r*   Nr+   r*   r   r   rï   rï   ?  s   † ÝOr   rï   c                   ó   € ] tR tRtRtRtR# )ÚCLIExtensionInstallErroriC  z(Error during CLI extension installation.r*   Nr+   r*   r   r   rñ   rñ   C  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# )ÚSandboxErroriJ  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__R  s&   ø€ ÷ 'ñ '¡ð '±S¸4µZð 'È4ñ 'r   c               ó2   <€ \         SV `  V4       W n        R # r   )r   r   rô   )r   rC   rô   r   s   &&$€r   r   ÚSandboxError.__init__R  s   ø€ Ü‰Ñ˜Ô!Ø&Ör   )rô   rI   r'   s   @@r   ró   ró   J  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# )ÚSandboxCommandErroriW  zÀRaised 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___  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___  s…   ø€ ØŒØŒØ/5¯}¯}¨}�f—m‘m E FÑ+À)ˆØ××ÐØ ‰FØ�]‰]Ò&Ø,¨V¯]©]¨OÐ<‰Fà(¨×)9Ñ)9Ð(:Ð;ˆFÜ‰Ñ˜8 C¡7¨!¨F¨8°;¸{¸mÐLÖMr   )r   r  rI   r'   s   @@r   rû   rû   W  s   ù‡ € ñ÷
N÷ 
Nó 
Nr   rû   N)Cr"   Ú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±   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ô !ô6˜iô ô˜ô ô$!˜~Ð/Aô !ô6"Ð/Ð1Cô "ô&+Ð5ô +ô$�n jô ô"@�	ô @ô<˜Yô <ô8�iô 8ô; ô ;ô1˜9ô 1ôKÐ%9ô Kô(Ð*>ô (ô(Ð*>ô (ôE�yô Eô<˜9ô <ôBˆyô BôP˜ô Pô3˜xô 3ô
'�9ô 
'ôN˜,ö Nr   