관리-도구
편집 파일: version.cpython-38.pyc
U /?�f� � @ sH d Z ddlmZ dZdZdd�dd�Zdd�d d �Zddd�d d�ZdS )z@The `version` module holds the version information for Pydantic.� )�annotations)�VERSION�version_infoz2.8.2�str)�returnc C s d� t�d�dd� �S )zmReturn the `major.minor` part of Pydantic version. It returns '2.1' if Pydantic version is '2.1.1'. �.N� )�joinr �split� r r �>/opt/hc_python/lib/python3.8/site-packages/pydantic/version.py� version_short s r c C s$ ddl m} ddl}ddl}ddl}ddlm} ddlm} ddl m } dddd d ddh}g }| �� D ],} | jd } | |krf|�| � d| j � �� qf|j�|j�|j�t���}|�|�r�|�� r�|�|�nd}t|jt|dd�p�|j|t��� j|j |�� d�|�|d�} d�dd� | �� D ��S )zFReturn complete version information for Pydantic and its dependencies.r N)�Path� )�_gitzemail-validatorZfastapiZmypyzpydantic-extra-typeszpydantic-settingsZpyright�typing_extensions�Name�-�unknownZ build_info� )zpydantic versionzpydantic-core versionzpydantic-core buildzinstall pathzpython version�platformzrelated packages�commit� c s s. | ]&\}}d � |d t|��dd��V qdS )z {:>30} {}�:r r N)�formatr �replace)�.0�k�vr r r � <genexpr>? s zversion_info.<locals>.<genexpr>)�importlib.metadata�metadata�osr �sys�pathlibr Zpydantic_core._pydantic_coreZ_pydantic_core� _internalr � distributions�append�version�path�abspath�dirname�__file__Zis_git_repoZhave_gitZgit_revisionr �__version__�getattrZ build_profile�resolve�parentr �items)Zimportlib_metadatar"