o
    N!h¼  ã                   @  s¤   d Z ddlmZ ddlmZ dZG dd„ deƒZG dd	„ d	eƒZ	G d
d„ deƒZ
G dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZG dd„ deƒZdS )zPydantic-specific warnings.é    )Úannotationsé   )Úversion_short)ÚPydanticDeprecatedSince20ÚPydanticDeprecatedSince26ÚPydanticDeprecatedSince29ÚPydanticDeprecatedSince210ÚPydanticDeprecatedSince211ÚPydanticDeprecationWarningÚPydanticExperimentalWarningc                      sL   e Zd ZU dZded< ded< ded< ddœd‡ fdd„Zddd„Z‡  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   ÚargsÚobjectútuple[int, int] | NoneÚreturnÚNonec                  sN   t ƒ j|g|¢R Ž  | d¡| _|| _|d ur|| _d S |d d df| _d S )NÚ.r   r   )ÚsuperÚ__init__Úrstripr   r   r   )Úselfr   r   r   r   ©Ú	__class__© ú€/var/www/html/contec/backend/tec.wsc/Coding/backend/Contec_Project_backend/env/lib/python3.10/site-packages/pydantic/warnings.pyr   "   s   (z#PydanticDeprecationWarning.__init__c              
   C  s\   | j › d| jd › d| jd › d| jd › d| jd › d
}| jdkr,|dtƒ › d7 }|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   r   r   r   Ú__str__*   s    ÿÿÿ
z"PydanticDeprecationWarning.__str__)
r   r   r   r   r   r   r   r   r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú__annotations__r   r!   Ú__classcell__r   r   r   r   r
      s   
 ÿr
   c                      ó"   e Zd ZdZd
‡ fdd	„Z‡  ZS )r   zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.0.r   r   r   r   r   r   c                   ó    t ƒ j|g|¢R dddœŽ d S )Nr   ©é   r   ©r   r   ©r   r   ©r   r   r   r   r   r   r   7   ó    z"PydanticDeprecatedSince20.__init__©r   r   r   r   r   r   ©r"   r#   r$   r%   r   r'   r   r   r   r   r   4   ó    r   c                      r(   )r   zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.6.r   r   r   r   r   r   c                   r)   )N)r    é   r*   r,   r-   r.   r   r   r   r   >   r/   z"PydanticDeprecatedSince26.__init__r0   r1   r   r   r   r   r   ;   r2   r   c                      r(   )r   zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.9.r   r   r   r   r   r   c                   r)   )N)r    é	   r*   r,   r-   r.   r   r   r   r   E   r/   z"PydanticDeprecatedSince29.__init__r0   r1   r   r   r   r   r   B   r2   r   c                      r(   )r   zgA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.10.r   r   r   r   r   r   c                   r)   )N)r    é
   r*   r,   r-   r.   r   r   r   r   L   r/   z#PydanticDeprecatedSince210.__init__r0   r1   r   r   r   r   r   I   r2   r   c                      r(   )r	   zgA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.11.r   r   r   r   r   r   c                   r)   )N)r    é   r*   r,   r-   r.   r   r   r   r   S   r/   z#PydanticDeprecatedSince211.__init__r0   r1   r   r   r   r   r	   P   r2   r	   c                   @  s   e Zd ZdS )ÚGenericBeforeBaseModelWarningN)r"   r#   r$   r   r   r   r   r7   W   s    r7   c                   @  s   e Zd ZdZdS )r   zúA 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%   r   r   r   r   r   [   s    r   N)r%   Ú
__future__r   Ú_annotationsÚversionr   Ú__all__ÚDeprecationWarningr
   r   r   r   r   r	   ÚWarningr7   r   r   r   r   r   Ú<module>   s    "