
    Kxh.                    |    d dl mZ d dlZd dlZd dlmZmZ d dlmZ ej	        dk    rd dl
mZ  G d de          ZdS )	    )annotationsN)ABCabstractmethod)Path)      )Literalc                  p   e Zd ZdZ	 	 	 	 	 	 d&d'dZd(dZeed)d                        Zeed)d                        Z	eed)d                        Z
eed)d                        Zeed)d                        Zeed)d                        Zeed)d                        Zeed)d                        Zeed)d                        Zed*d            Zed*d            Zed*d            Zed*d             Zed*d!            Zed*d"            Zed*d#            Zed*d$            Zed*d%            ZdS )+PlatformDirsABCz7
    Abstract base class for platform directories.
    NFTappname
str | None	appauthorstr | None | Literal[False]versionroamingbool	multipathopinionc                b    || _         || _        	 || _        	 || _        	 || _        	 || _        dS )a%  
        Create a new platform directory.

        :param appname: See `appname`.
        :param appauthor: See `appauthor`.
        :param version: See `version`.
        :param roaming: See `roaming`.
        :param multipath: See `multipath`.
        :param opinion: See `opinion`.
        N)r   r   r   r   r   r   )selfr   r   r   r   r   r   s          O/var/www/html/what/lib/python3.11/site-packages/pip/_vendor/platformdirs/api.py__init__zPlatformDirsABC.__init__   sN    & "	 	 	
 #	     basestrreturnc                    t          |dd                    }| j        r;|                    | j                   | j        r|                    | j                   t	          j        j        |d         g|R  S )N   r   )listr   appendr   ospathjoin)r   r   paramss      r   _append_app_name_and_versionz,PlatformDirsABC._append_app_name_and_version<   so    d122h< 	,MM$,'''| ,dl+++w|DG-f----r   c                    dS )z(:return: data directory tied to the userN r   s    r   user_data_dirzPlatformDirsABC.user_data_dirD         r   c                    dS )z':return: data directory shared by usersNr'   r(   s    r   site_data_dirzPlatformDirsABC.site_data_dirI   r*   r   c                    dS )z*:return: config directory tied to the userNr'   r(   s    r   user_config_dirzPlatformDirsABC.user_config_dirN   r*   r   c                    dS )z-:return: config directory shared by the usersNr'   r(   s    r   site_config_dirzPlatformDirsABC.site_config_dirS   r*   r   c                    dS )z):return: cache directory tied to the userNr'   r(   s    r   user_cache_dirzPlatformDirsABC.user_cache_dirX   r*   r   c                    dS )z):return: state directory tied to the userNr'   r(   s    r   user_state_dirzPlatformDirsABC.user_state_dir]   r*   r   c                    dS )z':return: log directory tied to the userNr'   r(   s    r   user_log_dirzPlatformDirsABC.user_log_dirb   r*   r   c                    dS )z-:return: documents directory tied to the userNr'   r(   s    r   user_documents_dirz"PlatformDirsABC.user_documents_dirg   r*   r   c                    dS )z+:return: runtime directory tied to the userNr'   r(   s    r   user_runtime_dirz PlatformDirsABC.user_runtime_dirl   r*   r   r   c                *    t          | j                  S )z#:return: data path tied to the user)r   r)   r(   s    r   user_data_pathzPlatformDirsABC.user_data_pathq        D&'''r   c                *    t          | j                  S )z":return: data path shared by users)r   r,   r(   s    r   site_data_pathzPlatformDirsABC.site_data_pathv   r=   r   c                *    t          | j                  S )z%:return: config path tied to the user)r   r.   r(   s    r   user_config_pathz PlatformDirsABC.user_config_path{        D()))r   c                *    t          | j                  S )z(:return: config path shared by the users)r   r0   r(   s    r   site_config_pathz PlatformDirsABC.site_config_path   rB   r   c                *    t          | j                  S )z$:return: cache path tied to the user)r   r2   r(   s    r   user_cache_pathzPlatformDirsABC.user_cache_path        D'(((r   c                *    t          | j                  S )z$:return: state path tied to the user)r   r4   r(   s    r   user_state_pathzPlatformDirsABC.user_state_path   rG   r   c                *    t          | j                  S )z":return: log path tied to the user)r   r6   r(   s    r   user_log_pathzPlatformDirsABC.user_log_path   s     D%&&&r   c                *    t          | j                  S )z(:return: documents path tied to the user)r   r8   r(   s    r   user_documents_pathz#PlatformDirsABC.user_documents_path   s     D+,,,r   c                *    t          | j                  S )z&:return: runtime path tied to the user)r   r:   r(   s    r   user_runtime_pathz!PlatformDirsABC.user_runtime_path   s     D)***r   )NNNFFT)r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   )r   r   )r   r   )__name__
__module____qualname____doc__r   r%   propertyr   r)   r,   r.   r0   r2   r4   r6   r8   r:   r<   r?   rA   rD   rF   rI   rK   rM   rO   r'   r   r   r   r      s         #15") ) ) ) )V. . . . 7 7 7 ^ X7 6 6 6 ^ X6 9 9 9 ^ X9 < < < ^ X< 8 8 8 ^ X8 8 8 8 ^ X8 6 6 6 ^ X6 < < < ^ X< : : : ^ X: ( ( ( X( ( ( ( X( * * * X* * * * X* ) ) ) X) ) ) ) X) ' ' ' X' - - - X- + + + X+ + +r   r   )
__future__r   r!   sysabcr   r   pathlibr   version_infotypingr	   r   r'   r   r   <module>r[      s    " " " " " " 				 



 # # # # # # # #      vP+ P+ P+ P+ P+c P+ P+ P+ P+ P+r   