
    k7ih                         S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSKJ	r	  SSKJ
r
  SS	KJr   " S
 S5      r " S S\5      r " S S\5      r " S S\5      rg)zJSONSchema spec readers module.    )Path)Any)Hashable)Mapping)Tuple)all_urls_handler)file_handler)SupportsReadc                   6    \ rS rSrS\\\\4   \4   4S jr	Sr
g)
BaseReader   returnc                     [         eN)NotImplementedErrorselfs    Q/home/james-whalen/.local/lib/python3.13/site-packages/jsonschema_path/readers.pyreadBaseReader.read   s    !!     N)__name__
__module____qualname____firstlineno__r   r   r   r   strr   __static_attributes__r   r   r   r   r      s!    "eGHcM2C78 "r   r   c                   D    \ rS rSrS\4S jrS\\\\	4   \
4   4S jrSrg)
FileReader   fileobjc                     Xl         g r   r"   )r   r"   s     r   __init__FileReader.__init__   s    r   r   c                 0    [        U R                  5      S4$ )N )r	   r"   r   s    r   r   FileReader.read   s    DLL)2--r   r$   N)r   r   r   r   r
   r%   r   r   r   r   r   r   r   r   r   r   r    r       s-     .eGHcM2C78 .r   r    c                   D    \ rS rSrS\4S jrS\\\\	4   \
4   4S jrSrg)
PathReader   pathc                     Xl         g r   r-   )r   r-   s     r   r%   PathReader.__init__   s    	r   r   c                     U R                   R                  5       (       d  [        SU R                    35      eU R                   R                  5       n[	        U5      U4$ )NzNo such file: )r-   is_fileOSErroras_urir   )r   uris     r   r   PathReader.read   sM    yy  ""N499+677ii $c))r   r/   N)r   r   r   r   r   r%   r   r   r   r   r   r   r   r   r   r   r+   r+      s-    T *eGHcM2C78 *r   r+   c                   0   ^  \ rS rSrS\4U 4S jjrSrU =r$ )FilePathReader'   	file_pathc                 V   > [        U5      R                  5       n[        TU ]  U5        g r   )r   absolutesuperr%   )r   r:   r-   	__class__s      r   r%   FilePathReader.__init__(   s"    I'')r   r   )r   r   r   r   r   r%   r   __classcell__)r>   s   @r   r8   r8   '   s    #  r   r8   N)__doc__pathlibr   typingr   r   r   r   jsonschema_path.handlersr   r	   "jsonschema_path.handlers.protocolsr
   r   r    r+   r8   r   r   r   <module>rF      sN    %      5 1 ;" "
. .	* 	*Z r   