$L idZddlmZddlmZddlmZmZmZ ddl m Z er ddl m Z mZmZeZe deZGd d eeZGd d eeZy #e $r ddlm Z YBwxYw)z> Type-annotation related support for the referencing library. ) annotations)Mapping) TYPE_CHECKINGAnyProtocol)TypeVar)ResolvedResolverResourceD)defaultceZdZdZddZy)Retrievez A retrieval callable, usable within a `Registry` for resource retrieval. Does not make assumptions about where the resource might be coming from. cy)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)selfuris X/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/referencing/typing.py__call__zRetrieve.__call__ s N)rURIreturnz Resource[D])__name__ __module__ __qualname____doc__rrrrrrs   rrc*eZdZdZeddZddZy)Anchorz An anchor within a `Resource`. Beyond "simple" anchors, some specifications like JSON Schema's 2020 version have dynamic anchors. cy)z1 Return the name of this anchor. Nr)rs rnamez Anchor.name2s rcy)z6 Return the resource for this anchor. Nr)rresolvers rresolvezAnchor.resolve9s rN)rstr)r"z Resolver[D]rz Resolved[D])rrrrpropertyr r#rrrrr*s    rrN)r __future__rcollections.abcrtypingrrrtyping_extensionsr ImportErrorreferencing._corer r r r$rr rrrrrr,st#.//)>>  C x{ " Xa[ =sA A#"A#