
    i
                     j    d Z g dZ G d de          Z G d dee          Z G d dee          ZdS )	z_This module contains classes used for warnings issued by this library.

.. versionadded:: 20.0
)PTBDeprecationWarningPTBRuntimeWarningPTBUserWarningc                       e Zd ZdZdZdS )r   z
    Custom user warning class used for warnings in this library.

    .. seealso:: :wiki:`Exceptions, Warnings and Logging <Exceptions%2C-Warnings-and-Logging>`

    .. versionadded:: 20.0
     N__name__
__module____qualname____doc__	__slots__r       Q/Users/shanyulin/my-agent/.venv/lib/python3.11/site-packages/telegram/warnings.pyr   r      s          IIIr   r   c                       e Zd ZdZdZdS )r   ze
    Custom runtime warning class used for warnings in this library.

    .. versionadded:: 20.0
    r   Nr   r   r   r   r   r   &   s          IIIr   r   c                   6    e Zd ZdZdZdededdfdZdefdZdS )	r   aX  
    Custom warning class for deprecations in this library.

    .. versionchanged:: 20.0
       Renamed TelegramDeprecationWarning to PTBDeprecationWarning.

    Args:
        version (:obj:`str`): The version in which the feature was deprecated.

            .. versionadded:: 21.2
        message (:obj:`str`): The message to display.

            .. versionadded:: 21.2

    Attributes:
        version (:obj:`str`): The version in which the feature was deprecated.

            .. versionadded:: 21.2
        message (:obj:`str`): The message to display.

            .. versionadded:: 21.2
    )messageversionr   r   returnNc                 "    || _         || _        d S )Nr   r   )selfr   r   s      r   __init__zPTBDeprecationWarning.__init__M   s    ##r   c                 &    d| j          d| j         S )zReturns a string representation of the warning, using :attr:`message` and
        :attr:`version`.

        .. versionadded:: 21.2
        zDeprecated since version z: r   )r   s    r   __str__zPTBDeprecationWarning.__str__Q   s     J4<II4<IIIr   )r   r	   r
   r   r   strr   r   r   r   r   r   r   3   sp         . 'I$ $c $d $ $ $ $J J J J J J Jr   r   N)r   __all__UserWarningr   RuntimeWarningr   DeprecationWarningr   r   r   r   <module>r      s   $ 
 K
J
J	 	 	 	 	[ 	 	 	       $J $J $J $J $JN,> $J $J $J $J $Jr   