
    )i                    h    S r SSKJr  SSKrSSKJr  SrSr	 Sr
SS jrSS	 jrSS
 jrSS jrSS jrg)z@The `version` module holds the version information for Pydantic.    )annotationsN)__version__)VERSIONversion_infoz2.12.5z2.41.5c                 P    SR                  [        R                  S5      SS 5      $ )zeReturn the `major.minor` part of Pydantic version.

It returns '2.1' if Pydantic version is '2.1.1'.
.N   )joinr   split     P/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/pydantic/version.pyversion_shortr      s#    
 88GMM#&r*++r   c                    SSK n SSKnSSKJn  SSKJn  SSKJn  1 Skn/ nU R                  R                  5        H9  nUR                  S   nX;   d  M  UR                  U SUR                   35        M;     U" [        5      R                  S   R                  5       n	UR                  U	5      (       a&  UR!                  5       (       a  UR#                  U	5      OS	n
[$        [&        [)        US
S5      =(       d    UR*                  [,        R                  UR                  5       SR/                  U5      U
S.nSR/                  S UR1                  5        5       5      $ )zFReturn complete version information for Pydantic and its dependencies.r   N)Path   )_git>   mypyfastapipyrighttyping_extensionsemail-validatorpydantic-settingspydantic-extra-typesName-unknown
build_info )zpydantic versionzpydantic-core versionzpydantic-core buildzpython versionplatformzrelated packagescommit
c              3     #    U  H5  u  pS R                  US-   [        U5      R                  SS5      5      v   M7     g7f)z	{:>30} {}:r"   r   N)formatstrreplace).0kvs      r   	<genexpr>version_info.<locals>.<genexpr>J   s9     eXdPTPQ[''CQc1JKKXds   =?)importlib.metadatar    pathlibr   pydantic_core._pydantic_core_pydantic_core	_internalr   metadatadistributionsappendversion__file__parentsresolveis_git_repohave_gitgit_revisionr   __pydantic_core_version__getattrbuild_profilesysr
   items)	importlibr    r   pdcgitpackage_namesrelated_packagesdistnamepydantic_dirmost_recent_commitinfos               r   r   r   !   s!   .&M ""002}}V$ ##tfAdll^$<= 3
 >))!,446L*-//,*G*GCLLNN&`i 
 $!:&sL$?T3CTCT++%%'HH%56$D 99eX\XbXbXdeeer   c                     [         [        :H  $ )zBCheck that the installed `pydantic-core` dependency is compatible.)r<   !_COMPATIBLE_PYDANTIC_CORE_VERSIONr   r   r   check_pydantic_core_versionrM   M   s    $(IIIr   c                     [        5       (       do  Sn [        R                  S:  a7  SSKJn  U" S5      n[        [        UR                  SS 5      SS5      (       a  Sn U (       a  [        S	[         S
[         S35      eg g )NT)      r   )distributionpydanticdir_infoeditableFz%The installed pydantic-core version (zD) is incompatible with the current pydantic version, which requires zZ. If you encounter this error, make sure that you haven't upgraded pydantic-core manually.)
rM   r?   r   r-   rQ   r=   originSystemErrorr<   rL   )raise_errorrQ   rF   s      r   _ensure_pydantic_core_versionrX   R   s    &((w&7
+Dwt{{J=z5QQ#78Q7R SEEfDg hkk   )r   c                v    [        [        [        U R                  S5      S   R	                  S5      5      5      $ )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)`.
+r   r   )tuplemapint	partitionr   )r5   s    r   parse_mypy_versionr_   e   s1     S'++C0399#>?@@r   )returnr&   )r`   bool)r`   None)r5   r&   r`   ztuple[int, int, int])__doc__
__future__r   _annotationsr?   pydantic_corer   r<   __all__r   rL   r   r   rM   rX   r_   r   r   r   <module>rh      sE    F 2 
 B
#
 %- !,)fXJ
&Ar   