HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/pydantic/__pycache__/version.cpython-310.pyc
o

|��g�	�@s<dZddlmZdZdZ	ddd�Zdd	d
�Zdd
d�ZdS)z@The `version` module holds the version information for Pydantic.�)�annotations)�VERSION�version_infoz2.10.6�return�strcCsd�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�rr�;/usr/local/lib/python3.10/dist-packages/pydantic/version.py�
version_shortsr
c	Csddlm}ddl}ddl}ddl}ddlm}ddlm}ddl	m
}hd�}g}|��D]}	|	jd}
|
|vrD|�|
�d|	j
���q.|j�|j�|j�t���}|�|�ra|��ra|�|�nd	}t|jt|d
d�pn|j|t���j|j
|��d�|�|d�}
d
�dd�|
��D��S)zFReturn complete version information for Pydantic and its dependencies.rN)�Path�)�_git>�email-validator�pydantic-settings�pydantic-extra-types�mypy�fastapi�pyright�typing_extensions�Name�-�unknown�
build_info� )zpydantic versionzpydantic-core versionzpydantic-core buildzinstall pathzpython version�platformzrelated packages�commit�
css0�|]\}}d�|dt|��dd��VqdS)z	{:>30} {}�:rrN)�formatr�replace)�.0�k�vrrr�	<genexpr>?s�.zversion_info.<locals>.<genexpr>)�importlib.metadata�metadata�osr�sys�pathlibr�pydantic_core._pydantic_core�_pydantic_core�	_internalr�
distributions�append�version�path�abspath�dirname�__file__�is_git_repo�have_git�git_revisionr�__version__�getattr�
build_profile�resolve�parentr	�items)�importlib_metadatar)rr*r�pdc�git�
package_names�related_packages�dist�name�pydantic_dir�most_recent_commit�inforrrrs6	
���
rr1�tuple[int, int, int]cCsttt|�d�d�d���S)a>Parse `mypy` string version to a 3-tuple of ints.

    It parses normal version like `1.11.0` and extra info followed by a `+` sign
    like `1.11.0+dev.d6d9d8cd4f27c52edac1f537e236ec48a01e54cb.dirty`.

    Args:
        version: The mypy version string.

    Returns:
        A triple of ints, e.g. `(1, 11, 0)`.
    �+rr)�tuple�map�int�	partitionr
)r1rrr�parse_mypy_versionBsrON)rr)r1rrrI)	�__doc__�
__future__r�_annotations�__all__rr
rrOrrrr�<module>s

/