
    hT                        S SK Jr  S SKJrJrJrJrJr  S SKJ	r	  \\
\4   r\\
\\\S\\
\4   \\   4   r\\\
\\\S\\
\4   \\   4   r\\
\\\S\\
\4   \\   \\S4   \	4	   r\\\
\\\S\\
\4   \\   \\S4   \	4
   r\r\rSS jrS rg)	    )Path)UnionDictAnyListTuple)OrderedDictN.c                     [        U [        5      (       d  [        U 5      n U(       a#  U R                  5       (       d  [        SU  35      eU $ )NzCan't read file: )
isinstancer   exists
ValueError)locationrequire_existss     D/home/james-whalen/.local/lib/python3.13/site-packages/srsly/util.py
force_pathr      s?    h%%>hoo//,XJ788O    c                 F    [        U [        5      (       a  U $ [        U 5      $ )N)r   str)r   s    r   force_stringr      s    (C  x=r   )T)pathlibr   typingr   r   r   r   r   collectionsr	   r   FilePathintfloatbool
JSONOutputbytesJSONOutputBin	JSONInputJSONInputBin	YAMLInput
YAMLOutputr   r    r   r   <module>r%      s     0 0 # d 3UD$S#XS	IJ
eS#udD$sCx.$s)ST#sE4tCH~tCy%PSUXPX/[ffg	UCeT4c3hcTYZ]_bZbTceppq	
r   