+
    –°³jõ	  ã                   ó(   € ^RI Ht  ! R R]4      tR# )é   )Ú	constantsc                   ój   a a€ ] tR t^t oRtR	V3R lV 3R llltR tV3R lR ltV3R ltRt	Vt
V ;t# )
ÚResolvedRevisiona<  A git revision that has already been resolved to a commit hash.

`ResolvedRevision` is a `str` subclass, so it can be passed to any `huggingface_hub` method taking a `revision`
argument. Its string value is the revision initially requested by the user (e.g. `"main"`, `"refs/pr/4"`),
which keeps URLs and error messages readable, while `.resolved` holds the commit hash it points to.

Instances are built by [`HfApi.resolve_revision`], which also caches the `revision` -> `commit hash` mapping
in the local cache (`refs/` folder).

A commit hash only means something for the repo it was resolved against, so an instance also remembers that
repo. Re-resolving it for another repo is not an error: the revision initially requested is resolved again
(see [`HfApi.resolve_revision`]).

Attributes:
    initial (`str` or `None`):
        The revision initially requested by the user. If `None`, the string value defaults to `"main"`.
    resolved (`str`):
        The commit hash that `initial` resolves to.

Example:
```python
>>> from huggingface_hub import resolve_revision
>>> revision = resolve_revision("openai-community/gpt2")
>>> revision
ResolvedRevision(initial=None, resolved='607a30d783dfa663caf39e06633721c8d4cfcd7e')
>>> revision == "main"  # it's a string
True
>>> revision.resolved
'607a30d783dfa663caf39e06633721c8d4cfcd7e'
```
c          
      ó`   <€ V ^8„  d   QhRS[ RS[ R,          RS[ R,          RS[ R,          RR/# )é   ÚresolvedÚinitialNÚrepo_idÚ	repo_typeÚreturnr   ©Ústr)ÚformatÚ__classdict__s   "€ÚZ/home/luca/screen-checking/.venv/lib/python3.14/site-packages/huggingface_hub/_revision.pyÚ__annotate__ÚResolvedRevision.__annotate__*   sI   ø€ ÷ ñ áðñ �t•ðñ �t•ð	ñ
 ˜•:ðð 
ñó    c                ó°   <€ \         ST `  Ye   TM\        P                  4      pW%n        Wn        W5n        T;'       g    \        P                  Vn        V# ©N)	ÚsuperÚ__new__r   ÚDEFAULT_REVISIONr	   r   Ú_repo_idÚREPO_TYPE_MODELÚ
_repo_type)Úclsr   r	   r
   r   ÚrevisionÚ	__class__s   &&&&& €r   r   ÚResolvedRevision.__new__*   sM   ø€ ô ‘7‘? 3Ò3F©ÌI×LfÑLfÓgˆØ"ÔØ$Ôà#ÔØ'×DÐD¬9×+DÑ+DˆÔØˆr   c                óv   € V P                   V P                  V P                  V P                  V P                  33# r   )r   r   r	   r   r   ©Úselfs   &r   Ú
__reduce__ÚResolvedRevision.__reduce__9   s*   € à�~‰~ §¡¨t¯|©|¸T¿]¹]ÈDÏOÉOÐ\Ð\Ð\r   c                ó    <€ V ^8„  d   QhRS[ /# )r   r   r   )r   r   s   "€r   r   r   =   s   ø€ ÷ Yñ Y™#ñ Yr   c                ó@   € R V P                   : RV P                  : R2# )zResolvedRevision(initial=z, resolved=Ú))r	   r   r"   s   &r   Ú__repr__ÚResolvedRevision.__repr__=   s"   € Ø*¨4¯<©<Ñ*:¸+ÀdÇmÁmÑEVÐVWÐXÐXr   c                óf   <€ V ^8„  d   Qh/ S[ R,          ;R&   S[ ;R&   S[ R,          ;R&   S[ ;R&   # )r   Nr	   r   r   r   r   )r   r   s   "€r   r   r      sG   ø‡ ‚ ñB �4�ZÑñC ñD �MñE ñF �D�jÑñG ñH �OòI r   © )NNN)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r$   r)   Ú__annotate_func__Ú__static_attributes__Ú__classdictcell__Ú__classcell__)r   r   s   @@r   r   r      s/   ù‡ € ñ÷Jõ ò]÷Yð Y÷s … r   r   N)Ú r   r   r   r,   r   r   Ú<module>r7      s   ðÝ ô:Y�sö :Yr   