
    ,h                        d Z ddlmZ ddlmZ dZ G d de      Z G d d	e      Z	 G d
 de      Z
 G d de      Z G d de      Z G d de      Z G d de      Z G d de      Zy)zPydantic-specific warnings.    )annotations   )version_short)PydanticDeprecatedSince20PydanticDeprecatedSince26PydanticDeprecatedSince29PydanticDeprecatedSince210PydanticDeprecatedSince211PydanticDeprecationWarningPydanticExperimentalWarningc                  d     e Zd ZU dZded<   ded<   ded<   dd	 	 	 	 	 	 	 	 	 d fd	Zdd
Z xZS )r   a  A Pydantic specific deprecation warning.

    This warning is raised when using deprecated functionality in Pydantic. It provides information on when the
    deprecation was introduced and the expected version in which the corresponding functionality will be removed.

    Attributes:
        message: Description of the warning.
        since: Pydantic version in what the deprecation was introduced.
        expected_removal: Pydantic version in what the corresponding functionality expected to be removed.
    strmessagetuple[int, int]sinceexpected_removalN)r   c                   t        |   |g|  |j                  d      | _        || _        ||| _        y |d   dz   df| _        y )N.r   r   )super__init__rstripr   r   r   )selfr   r   r   args	__class__s        S/var/www/html/Resume-Scraper/venv/lib/python3.12/site-packages/pydantic/warnings.pyr   z#PydanticDeprecationWarning.__init__"   sV     	(4(~~c*
4D4P 0W\]^W_bcWcefVg    c           
         | j                    d| j                  d    d| j                  d    d| j                  d    d| j                  d    d
}| j                  dk(  r|dt                dz  }|S )	Nz. Deprecated in Pydantic Vr   r   r   z to be removed in V   r   z@ See Pydantic V2 Migration Guide at https://errors.pydantic.dev/z/migration/)r   r   r   r   )r   r   s     r   __str__z"PydanticDeprecationWarning.__str__*   s    ||n6tzz!}oQtzzRS}o!$"7"7":!;1T=R=RST=U<VVWY 	 ::YZgZiYjjuvvGr   )
r   r   r   objectr   r   r   ztuple[int, int] | NonereturnNone)r"   r   )__name__
__module____qualname____doc____annotations__r   r    __classcell__r   s   @r   r   r      sZ    	 L%% oshh#)h2AhUkh	hr   r   c                  $     e Zd ZdZd fdZ xZS )r   zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.0.c                .    t        |   |g|ddd y )Nr      r   r   r   r   r   r   r   r   r   s      r   r   z"PydanticDeprecatedSince20.__init__7       O4OvOr   r   r   r   r!   r"   r#   r$   r%   r&   r'   r   r)   r*   s   @r   r   r   4       pP Pr   r   c                  $     e Zd ZdZd fdZ xZS )r   zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.6.c                .    t        |   |g|ddd y )N)r      r-   r/   r0   r1   s      r   r   z"PydanticDeprecatedSince26.__init__>   r2   r   r3   r4   r*   s   @r   r   r   ;   r5   r   r   c                  $     e Zd ZdZd fdZ xZS )r   zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.9.c                .    t        |   |g|ddd y )N)r   	   r-   r/   r0   r1   s      r   r   z"PydanticDeprecatedSince29.__init__E   r2   r   r3   r4   r*   s   @r   r   r   B   r5   r   r   c                  $     e Zd ZdZd fdZ xZS )r	   zgA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.10.c                .    t        |   |g|ddd y )N)r   
   r-   r/   r0   r1   s      r   r   z#PydanticDeprecatedSince210.__init__L       P4PwPr   r3   r4   r*   s   @r   r	   r	   I       qQ Qr   r	   c                  $     e Zd ZdZd fdZ xZS )r
   zgA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.11.c                .    t        |   |g|ddd y )N)r      r-   r/   r0   r1   s      r   r   z#PydanticDeprecatedSince211.__init__S   r?   r   r3   r4   r*   s   @r   r
   r
   P   r@   r   r
   c                      e Zd Zy)GenericBeforeBaseModelWarningN)r$   r%   r&    r   r   rE   rE   W   s    r   rE   c                      e Zd ZdZy)r   zA Pydantic specific experimental functionality warning.

    This warning is raised when using experimental functionality in Pydantic.
    It is raised to warn users that the functionality may change or be removed in future versions of Pydantic.
    N)r$   r%   r&   r'   rF   r   r   r   r   [   s    r   r   N)r'   
__future__r   _annotationsversionr   __all__DeprecationWarningr   r   r   r   r	   r
   WarningrE   r   rF   r   r   <module>rN      s    ! 2 "!3 DP : PP : PP : PQ!; QQ!; Q	G 	' r   