
    3ij                        d dl mZ d dlmZ d dlmZ ddlmZmZ erd dl	m
Z
 d dlmZ d dlmZmZ  G d	 d
e      Z G d de      Zd
dgZy)    )annotations)contextmanager)TYPE_CHECKING   )AppDataContentStore)	Generator)Path)AnyNoReturnc                      e Zd ZdZdZdZddZ ed      ZddZ	ddZ
ddZdd	Zdd
Zedd       Zedd       ZddZddZy)AppDataDisabledzPNo application cache available (most likely as we don't have write permissions).TFc                     y N selfs    I/var/www/opsc/venv/lib/python3.12/site-packages/virtualenv/app_data/na.py__init__zAppDataDisabled.__init__   s        zDno app data folder available, probably no write access to the folderc                     yzDo nothing.Nr   r   s    r   closezAppDataDisabled.close       r   c                     yr   r   r   s    r   resetzAppDataDisabled.reset   r   r   c                    t               S r   ContentStoreNAr   paths     r   py_infozAppDataDisabled.py_info       r   c                    t               S r   r   )r   distributionfor_py_versions      r   embed_update_logz AppDataDisabled.embed_update_log"   r#   r   c                    | j                   r   error)r   r!   	to_folders      r   extractzAppDataDisabled.extract%       jjr   c              #     K   d ywr   r   r    s     r   lockedzAppDataDisabled.locked(   s      	   c                    | j                   r   r)   r   s    r   housezAppDataDisabled.house-   s    jjr   c                    | j                   r   r)   )r   r&   names      r   wheel_imagezAppDataDisabled.wheel_image1   r-   r   c                     y)zNothing to clear.Nr   r   s    r   py_info_clearzAppDataDisabled.py_info_clear4   r   r   NreturnNone)r!   r
   r9   r   )r%   strr&   r;   r9   r   )r!   r
   r+   zPath | Noner9   r   )r!   r
   r9   Generator[None])r9   r   )r&   r;   r4   r;   r9   r   )__name__
__module____qualname____doc__	transient
can_updater   RuntimeErrorr*   r   r   r"   r'   r,   r   r/   propertyr2   r5   r7   r   r   r   r   r      sl    ZIJ _`E       r   r   c                  >    e Zd ZddZddZd	dZddZed
d       Zy)r   c                     y)NFr   r   s    r   existszContentStoreNA.exists9   s    r   c                     y)zNothing to read.Nr   r   s    r   readzContentStoreNA.read<   s    r   c                     y)zNothing to write.Nr   )r   contents     r   writezContentStoreNA.write@   r   r   c                     y)zNothing to remove.Nr   r   s    r   removezContentStoreNA.removeC   r   r   c              #     K   d  y wr   r   r   s    r   r/   zContentStoreNA.lockedF   s	     r0   N)r9   boolr8   )rK   r   r9   r:   )r9   r<   )	r=   r>   r?   rG   rI   rL   rN   r   r/   r   r   r   r   r   8   s*     !  r   r   N)
__future__r   
contextlibr   typingr   baser   r   collections.abcr	   pathlibr
   r   r   r   r   __all__r   r   r   <module>rX      sE    " %   ')$' g ' T\ ( r   