�
!��gJ) � � � d Z ddlZddlZddlmZ G d� de� � Z ej de� � dd�d �Zej d
� � � Z
dS )z(
General SymPy exceptions and warnings.
� N)�dedentc �P � � e Zd ZdZ� fd�Zd� Zd� Zd� Zed� � � Z d� Z
� xZS )�SymPyDeprecationWarninga�
A warning for deprecated features of SymPy.
See the :ref:`deprecation-policy` document for details on when and how
things should be deprecated in SymPy.
Note that simply constructing this class will not cause a warning to be
issued. To do that, you must call the :func`sympy_deprecation_warning`
function. For this reason, it is not recommended to ever construct this
class directly.
Explanation
===========
The ``SymPyDeprecationWarning`` class is a subclass of
``DeprecationWarning`` that is used for all deprecations in SymPy. A
special subclass is used so that we can automatically augment the warning
message with additional metadata about the version the deprecation was
introduced in and a link to the documentation. This also allows users to
explicitly filter deprecation warnings from SymPy using ``warnings``
filters (see :ref:`silencing-sympy-deprecation-warnings`).
Additionally, ``SymPyDeprecationWarning`` is enabled to be shown by
default, unlike normal ``DeprecationWarning``\s, which are only shown by
default in interactive sessions. This ensures that deprecation warnings in
SymPy will actually be seen by users.
See the documentation of :func:`sympy_deprecation_warning` for a
description of the parameters to this function.
To mark a function as deprecated, you can use the :func:`@deprecated
<sympy.utilities.decorator.deprecated>` decorator.
See Also
========
sympy.utilities.exceptions.sympy_deprecation_warning
sympy.utilities.exceptions.ignore_warnings
sympy.utilities.decorator.deprecated
sympy.testing.pytest.warns_deprecated_sympy
c �| ��� t � � � ||�� � || _ t |t � � st d|��� � �|| _ �| _ t �fd�dD � � � � rt d� � �dt |� � � � � � d�� d|� d�| _ d S ) Nz3'deprecated_since_version' should be a string, got c 3 � �K � | ]}|�v V � � d S �N� )�.0�i�active_deprecations_targets ��j/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/sympy/utilities/exceptions.py� <genexpr>z3SymPyDeprecationWarning.__init__.<locals>.<genexpr>>