
    zi	                    8    d Z ddlmZ dZdZ	 ddZddZddZdS )z@The `version` module holds the version information for Pydantic.    )annotations)VERSIONversion_infoz2.5.0returnstrc                 l    d                     t                              d          dd                   S )zmReturn the `major.minor` part of Pydantic version.

    It returns '2.1' if Pydantic version is '2.1.1'.
    .N   )joinr   split     [/var/www/tmov.alphamb/tmov_inventario/venv/lib/python3.11/site-packages/pydantic/version.pyversion_shortr   
   s+    
 88GMM#&&rr*+++r   c            	     D   ddl } ddl}ddlm} ddlm} |j        dk    rddlm} nddl	}h d}g }|
                                D ]2}|j        d         }||v r|                    | d|j                    3t          |j        t          |dd          p|j         |t"                                                    j        |j        |                                  d	                    |          d
}	d                    d |	                                D                       S )zFReturn complete version information for Pydantic and its dependencies.r   N)Path)      >   email-validatorpydantic-settingspydantic-extra-typesmypyfastapipyrighttyping_extensionsName-
build_info )zpydantic versionzpydantic-core versionzpydantic-core buildzinstall pathzpython versionplatformzrelated packages
c              3     K   | ]A\  }}d                      |dz   t          |                              dd                    V  BdS )z	{:>30} {}:r!   r   N)formatr   replace).0kvs      r   	<genexpr>zversion_info.<locals>.<genexpr>9   sQ      eePTPQST[''CQc1J1JKKeeeeeer   )r    syspathlibr   pydantic_core._pydantic_core_pydantic_corer   importlib.metadatametadataimportlib_metadatadistributionsappendversionr   __version__getattrbuild_profile__file__resolveparentr   items)
r    r*   r   pdcr0   package_namesrelated_packagesdistnameinfos
             r   r   r      sr   OOOJJJ......
6!!7777777!!!!  M "0022 > >}V$=  ##t$<$<dl$<$<=== $!$&sL$??T3CTX..007+%%''HH%566 D 99eeX\XbXbXdXdeeeeeer   r3   tuple[int, ...]c                    t          t          t          |                     d          d                             d                              S )a  Parse mypy string version to tuple of ints.

    This function is included here rather than the mypy plugin file because the mypy plugin file cannot be imported
    outside a mypy run.

    It parses normal version like `0.930` and dev version
    like `0.940+dev.04cac4b5d911c4f9529e6ce86a27b44f28846f5d.dirty`.

    Args:
        version: The mypy version string.

    Returns:
        A tuple of ints. e.g. (0, 930).
    +r   r	   )tuplemapint	partitionr   )r3   s    r   parse_mypy_versionrH   <   s=     S'++C00399#>>??@@@r   N)r   r   )r3   r   r   rA   )	__doc__
__future__r   _annotations__all__r   r   r   rH   r   r   r   <module>rM      s{    F F 2 2 2 2 2 2
#
 , , , ,'f 'f 'f 'fTA A A A A Ar   