
    3i                    j    d dl mZ d dlmZ d dlmZ ddlmZ erd dlmZ d dlm	Z	 ddlm
Z
 dd	Zd
gZy)    )annotations)suppress)TYPE_CHECKING   )convert)Mapping)Any)TypeDatac                    d| j                          }|j                  |      r4||   }t        t              5  d| }t	        |||      }||fcddd       S y# 1 sw Y   yxY w)zGet the environment variable option.

    :param key: the config key requested
    :param as_type: the type we would like to convert it to
    :param env: environment variables to use

    :returns: the converted value and source, or None if not set

    VIRTUALENV_zenv var N)uppergetr   	Exceptionr   )keyas_typeenvenviron_keyvaluesources         L/var/www/opsc/venv/lib/python3.12/site-packages/virtualenv/config/env_var.pyget_env_varr      st      		}-K
ww{K i  	#}-FeWf5GF?	# 	# 		# s   AA#r   N)r   strr   r
   r   zMapping[str, str]returnztuple[Any, str] | None)
__future__r   
contextlibr   typingr   r   collections.abcr   r	   r
   r   __all__     r   <module>r!      s.    "    '!, r    