HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/referencing/__pycache__/typing.cpython-39.pyc
a

�,�h��@s�dZddlmZddlmZddlmZmZmZzddl	m
Z
Wney^ddlm
Z
Yn0erxddlm
Z
mZmZeZe
ded�ZGd	d
�d
ee�ZGdd�dee�Zd
S)z>
Type-annotation related support for the referencing library.
�)�annotations)�Mapping)�
TYPE_CHECKING�Any�Protocol)�TypeVar)�Resolved�Resolver�Resource�D)�defaultc@s eZdZdZddd�dd�ZdS)�Retrievez�
    A retrieval callable, usable within a `Registry` for resource retrieval.

    Does not make assumptions about where the resource might be coming from.
    �URIzResource[D])�uri�returncCsdS)z�
        Retrieve the resource with the given URI.

        Raise `referencing.exceptions.NoSuchResource` if you wish to indicate
        the retriever cannot lookup the given URI.
        N�)�selfrrr�C/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/referencing/typing.py�__call__ szRetrieve.__call__N)�__name__�
__module__�__qualname__�__doc__rrrrrr
sr
c@s2eZdZdZedd�dd��Zddd�d	d
�ZdS)�Anchorz�
    An anchor within a `Resource`.

    Beyond "simple" anchors, some specifications like JSON Schema's 2020
    version have dynamic anchors.
    �str)rcCsdS)z1
        Return the name of this anchor.
        Nr)rrrr�name2szAnchor.namezResolver[D]zResolved[D])�resolverrcCsdS)z6
        Return the resource for this anchor.
        Nr)rrrrr�resolve9szAnchor.resolveN)rrrr�propertyrrrrrrr*srN)r�
__future__r�collections.abcr�typingrrrZtyping_extensionsr�ImportErrorZreferencing._corerr	r
rrrr
rrrrr�<module>s