
    [Th                    l    S r SSKJr  SSKrSSKJr  SSKJr  S/r\" \R                  SS	9SS
 j5       r	g)z
Python polyfills for os
    )annotationsN)AnyStr   )substitute_in_graphfspathT)can_constant_fold_throughc                ~   [        U [        [        45      (       a  U $ [        U 5      n UR	                  U 5      n[        U[        [        45      (       a  U$ [        SUR                   S[        U5      R                   35      e! [
         a,    [        US5      (       a  e [        SUR                   35      S ef = f)N
__fspath__z/expected str, bytes or os.PathLike object, not z	expected z*.__fspath__() to return str or bytes, not )	
isinstancestrbytestyper
   AttributeErrorhasattr	TypeError__name__)path	path_type	path_reprs      R/var/www/auris/envauris/lib/python3.13/site-packages/torch/_dynamo/polyfills/os.pyr   r      s    $e%%T
I((.	 )c5\**

I&&' (I''(	*   9l++=i>P>P=QR
	s   B 6B<)r   zAnyStr | os.PathLike[AnyStr]returnr   )
__doc__
__future__r   ostypingr   
decoratorsr   __all__r        r   <module>r       sA    # 	  , * RYY$? @r   