
    ȇhP                    r   S r SSKJr  SSKJrJr  SSKrSSKJr  \(       a  SSK	J
r
  SSKJr  \ " S S	\5      5       r\ " S
 S\5      5       r\ " S S\5      5       r\ " S S\5      5       r\R                   " S S\5      5       r\ " S S\5      5       r\ " S S\5      5       r\ " S S\5      5       rg)z
Errors, oh no!
    )annotations)TYPE_CHECKINGAnyN)frozen)Resource)URIc                  8    \ rS rSr% SrS\S'   S	S jrS
S jrSrg)NoSuchResource   z
The given URI is not present in a registry.

Unlike most exceptions, this class *is* intended to be publicly
instantiable and *is* part of the public API of the package.
r   refc                    U R                   UR                   La  [        $ [        R                  " U 5      [        R                  " U5      :H  $ N	__class__NotImplementedattrsastupleselfothers     nC:\Users\julio\OneDrive\Documentos\Trabajo\IdeasFrscas\Cabanna\env\Lib\site-packages\referencing/exceptions.py__eq__NoSuchResource.__eq__   5    >>0!!}}T"emmE&:::    c                @    [        [        R                  " U 5      5      $ r   hashr   r   r   s    r   __hash__NoSuchResource.__hash__"       EMM$'((r    Nr   objectreturnboolr&   int	__name__
__module____qualname____firstlineno____doc____annotations__r   r    __static_attributes__r#   r   r   r
   r
      s     
H;
)r   r
   c                  8    \ rS rSr% SrS\S'   S	S jrS
S jrSrg)NoInternalID&   a
  
A resource has no internal ID, but one is needed.

E.g. in modern JSON Schema drafts, this is the :kw:`$id` keyword.

One might be needed if a resource was to-be added to a registry but no
other URI is available, and the resource doesn't declare its canonical URI.
Resource[Any]resourcec                    U R                   UR                   La  [        $ [        R                  " U 5      [        R                  " U5      :H  $ r   r   r   s     r   r   NoInternalID.__eq__3   r   r   c                @    [        [        R                  " U 5      5      $ r   r   r   s    r   r    NoInternalID.__hash__8   r"   r   r#   Nr$   r(   r*   r#   r   r   r3   r3   &   s     ;
)r   r3   c                  8    \ rS rSr% SrS\S'   S	S jrS
S jrSrg)Unretrievable<   zG
The given URI is not present in a registry, and retrieving it failed.
r   r   c                    U R                   UR                   La  [        $ [        R                  " U 5      [        R                  " U5      :H  $ r   r   r   s     r   r   Unretrievable.__eq__D   r   r   c                @    [        [        R                  " U 5      5      $ r   r   r   s    r   r    Unretrievable.__hash__I   r"   r   r#   Nr$   r(   r*   r#   r   r   r<   r<   <        
H;
)r   r<   c                  8    \ rS rSr% SrS\S'   S	S jrS
S jrSrg)CannotDetermineSpecificationM   z
Attempting to detect the appropriate `Specification` failed.

This happens if no discernible information is found in the contents of the
new resource which would help identify it.
r   contentsc                    U R                   UR                   La  [        $ [        R                  " U 5      [        R                  " U5      :H  $ r   r   r   s     r   r   #CannotDetermineSpecification.__eq__X   r   r   c                @    [        [        R                  " U 5      5      $ r   r   r   s    r   r    %CannotDetermineSpecification.__hash__]   r"   r   r#   Nr$   r(   r*   r#   r   r   rD   rD   M   s     M;
)r   rD   c                  8    \ rS rSr% SrS\S'   S	S jrS
S jrSrg)Unresolvablea   z
A reference was unresolvable.
r   r   c                    U R                   UR                   La  [        $ [        R                  " U 5      [        R                  " U5      :H  $ r   r   r   s     r   r   Unresolvable.__eq__i   r   r   c                @    [        [        R                  " U 5      5      $ r   r   r   s    r   r    Unresolvable.__hash__n   r"   r   r#   Nr$   r(   r*   r#   r   r   rL   rL   a   rB   r   rL   c                  .    \ rS rSr% SrS\S'   SS jrSrg)	PointerToNowherer   zC
A JSON Pointer leads to a part of a document that does not exist.
r5   r6   c                ~    U R                   < SU R                  R                  < 3nU R                   S:X  a  US-  nU$ )N does not exist within /z. The pointer '/' is a valid JSON Pointer but it points to an empty string property ''. If you intended to point to the entire resource, you should use '#'.)r   r6   rF   )r   msgs     r   __str__PointerToNowhere.__str__z   sC    3DMM4J4J3MN88s?>C
 
r   r#   Nr&   strr+   r,   r-   r.   r/   r0   rY   r1   r#   r   r   rS   rS   r   s     r   rS   c                  8    \ rS rSr% SrS\S'   S\S'   S
S jrSrg	)NoSuchAnchor   z8
An anchor does not exist within a particular resource.
r5   r6   r\   anchorc                P    U R                   < SU R                  R                  < 3$ )NrV   )ra   r6   rF   r   s    r   rY   NoSuchAnchor.__str__   s%    {{o4T]]5K5K4NO	
r   r#   Nr[   r]   r#   r   r   r_   r_      s     K
r   r_   c                  8    \ rS rSr% SrS\S'   S\S'   S
S jrSrg	)InvalidAnchor   zi
An anchor which could never exist in a resource was dereferenced.

It is somehow syntactically invalid.
r5   r6   r\   ra   c                <    SU R                    SU R                    S3$ )Nz'#zo' is not a valid anchor, neither as a plain name anchor nor as a JSON Pointer. You may have intended to use '#/zD', as the slash is required *before each segment* of a JSON pointer.)ra   r   s    r   rY   InvalidAnchor.__str__   s*      &**	
r   r#   Nr[   r]   r#   r   r   re   re      s     K
r   re   )r/   
__future__r   typingr   r   r   referencing._attrsr   referencingr   referencing.typingr   KeyErrorr
   	Exceptionr3   r<   rD   rL   rS   r_   re   r#   r   r   <module>rp      s    # %  %$& )X ) )& )9 ) )* )H ) )  )9 ) )& )9 ) )  |  $ 
< 
 
 
L 
 
r   