Ë
    4¾g  ã                  ó¾   — 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y)zPydantic-specific warnings.é    )Úannotationsé   )Úversion_short)ÚPydanticDeprecatedSince20ÚPydanticDeprecationWarningÚPydanticDeprecatedSince26Ú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        €úg/var/www/python.lazyprojects.co.uk/rdoDiscordBot/venv/lib/python3.12/site-packages/pydantic/warnings.pyr   z#PydanticDeprecationWarning.__init__   sV   ø€ ô 	‰Ñ˜Ð( 4Ó(Ø—~‘~ cÓ*ˆŒØˆŒ
Ø4DÐ4PÐ 0ˆÕÐW\Ð]^ÑW_ÐbcÑWcÐefÐVgˆÕó    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Ð6°t·z±zÀ!±}°oÀQÀtÇzÁzÐRSÁ}ÀoØ! $×"7Ñ"7¸Ñ":Ð!;¸1¸T×=RÑ=RÐSTÑ=UÐ<VÐVWðYð 	ð :‰:˜ÒØÐYÔZgÓZiÐYjÐjuÐvÑvˆGØˆ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__4   ó   ø€ Ü‰Ñ˜ÐO 4ÑO¨vÈÔOr   ©r   r   r   r   r   r    ©r!   r"   r#   r$   r   r&   r'   s   @r   r   r   1   ó   ø„ Ù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,   r-   r.   s      €r   r   z"PydanticDeprecatedSince26.__init__;   r/   r   r0   r1   r'   s   @r   r   r   8   r2   r   r   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚPydanticDeprecatedSince29zfA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.9.c                ó.   •— t        ‰|   |g|¢­dddœŽ y )N)r   é	   r*   r,   r-   r.   s      €r   r   z"PydanticDeprecatedSince29.__init__B   r/   r   r0   r1   r'   s   @r   r7   r7   ?   r2   r   r7   c                  ó$   ‡ — e Zd ZdZdˆ fd„Zˆ xZS )ÚPydanticDeprecatedSince210zgA specific `PydanticDeprecationWarning` subclass defining functionality deprecated since Pydantic 2.10.c                ó.   •— t        ‰|   |g|¢­dddœŽ y )N)r   é
   r*   r,   r-   r.   s      €r   r   z#PydanticDeprecatedSince210.__init__I   s   ø€ Ü‰Ñ˜ÐP 4ÑP¨wÈÔPr   r0   r1   r'   s   @r   r;   r;   F   s   ø„ Ùq÷Qñ Qr   r;   c                  ó   — e Zd Zy)ÚGenericBeforeBaseModelWarningN)r!   r"   r#   © r   r   r?   r?   M   s   „ Ør   r?   c                  ó   — e Zd ZdZy)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	   Q   s   „ òr   r	   N)r$   Ú
__future__r   Ú_annotationsÚversionr   Ú__all__ÚDeprecationWarningr   r   r   r7   r;   ÚWarningr?   r	   r@   r   r   Ú<module>rH      sw   ðÙ !å 2å "ð€ôÐ!3ô ôDPÐ :ô PôPÐ :ô PôPÐ :ô PôQÐ!;ô Qô	 Gô 	ô 'õ r   