o
    Wij                     @  s   d dl mZ d dlmZ d dlmZ ddlmZmZ er0d dl	m
Z
 d dlmZ d dlmZmZ G d	d
 d
eZG dd deZd
dgZdS )    )annotations)contextmanager)TYPE_CHECKING   )AppDataContentStore)	Generator)Path)AnyNoReturnc                   @  s   e Zd ZdZdZdZd'ddZedZd'd	d
Z	d'ddZ
d(ddZd)ddZd*ddZed+ddZed,dd Zd-d"d#Zd'd$d%Zd&S ).AppDataDisabledzPNo application cache available (most likely as we don't have write permissions).TFreturnNonec                 C  s   d S N selfr   r   J/home/ubuntu/.local/lib/python3.10/site-packages/virtualenv/app_data/na.py__init__      zAppDataDisabled.__init__zDno app data folder available, probably no write access to the folderc                 C     dS zDo nothing.Nr   r   r   r   r   close       zAppDataDisabled.closec                 C  r   r   r   r   r   r   r   reset   r   zAppDataDisabled.resetpathr	   ContentStoreNAc                 C     t  S r   r   r   r   r   r   r   py_info      zAppDataDisabled.py_infodistributionstrfor_py_versionc                 C  r   r   r   )r   r"   r$   r   r   r   embed_update_log"   r!   z AppDataDisabled.embed_update_log	to_folderPath | Noner   c                 C     | j r   error)r   r   r&   r   r   r   extract%   r!   zAppDataDisabled.extractGenerator[None]c                 c  s    dV  dS r   r   r   r   r   r   locked(   s   
zAppDataDisabled.lockedc                 C  r(   r   r)   r   r   r   r   house-   s   zAppDataDisabled.housenamec                 C  r(   r   r)   )r   r$   r/   r   r   r   wheel_image1   r!   zAppDataDisabled.wheel_imagec                 C  r   )zNothing to clear.Nr   r   r   r   r   py_info_clear4   r   zAppDataDisabled.py_info_clearNr   r   )r   r	   r   r   )r"   r#   r$   r#   r   r   )r   r	   r&   r'   r   r   )r   r	   r   r,   )r   r   )r$   r#   r/   r#   r   r   )__name__
__module____qualname____doc__	transient
can_updater   RuntimeErrorr*   r   r   r    r%   r+   r   r-   propertyr.   r0   r1   r   r   r   r   r      s"    






r   c                   @  sB   e Zd ZdddZdddZdd
dZdddZedddZdS )r   r   boolc                 C  r   )NFr   r   r   r   r   exists9   r   zContentStoreNA.existsr   c                 C  r   )zNothing to read.Nr   r   r   r   r   read<   s   zContentStoreNA.readcontentr
   c                 C  r   )zNothing to write.Nr   )r   r>   r   r   r   write@   r   zContentStoreNA.writec                 C  r   )zNothing to remove.Nr   r   r   r   r   removeC   r   zContentStoreNA.remover,   c                 c  s    d V  d S r   r   r   r   r   r   r-   F   s   
zContentStoreNA.lockedN)r   r;   r2   )r>   r
   r   r   )r   r,   )	r3   r4   r5   r<   r=   r?   r@   r   r-   r   r   r   r   r   8   s    



r   N)
__future__r   
contextlibr   typingr   baser   r   collections.abcr   pathlibr	   r
   r   r   r   __all__r   r   r   r   <module>   s    *