@@ -0,0 +1,2139 @@
+%22%22%22%0ADeprecation warning.%0A%0AThis is adapted from sympy/utilities/exceptions.py%0A%22%22%22%0A%0Aimport warnings%0A%0Afrom sympy.utilities.misc import filldedent%0A%0A%0Aclass LcapyDeprecationWarning(DeprecationWarning):%0A    r%22%22%22A warning for deprecated features of Lcapy.%0A    %22%22%22%0A%0A    def __init__(self, value=None, feature=None, last_supported_version=None,%0A                 useinstead=None, issue=None, deprecated_since_version=None):%0A%0A        self.args = (value, feature, last_supported_version, useinstead,%0A                issue, deprecated_since_version)%0A%0A        self.fullMessage = %22%22%0A%0A        if not feature:%0A            raise ValueError(%22feature is required argument of LcapyDeprecationWarning%22)%0A%0A        if not deprecated_since_version:%0A            raise ValueError(%22deprecated_since_version is a required argument of LcapyDeprecationWarning%22)%0A%0A        self.fullMessage = %22%25s has been deprecated since Lcapy %25s. %22 %25 %5C%0A                                   (feature, deprecated_since_version)%0A%0A        if last_supported_version:%0A            self.fullMessage += (%22It will be last supported in Lcapy %22%0A                %22version %25s. %22) %25 last_supported_version%0A        if useinstead:%0A            self.fullMessage += %22Use %25s instead. %22 %25 useinstead%0A%0A%0A        if issue is not None:%0A            self.fullMessage += (%22See %22%0A                                 %22https://github.com/mph-/lcapy/issues/%25d for more %22%0A                                 %22info. %22) %25 issue%0A%0A        if value:%0A            if not isinstance(value, str):%0A                value = %22(%25s)%22 %25 repr(value)%0A            value = %22 %22 + value%0A        else:%0A            value = %22%22%0A%0A        self.fullMessage += value%0A%0A    def __str__(self):%0A        return '%5Cn%25s%5Cn' %25 filldedent(self.fullMessage)%0A%0A    def warn(self, stacklevel=2):%0A        # the next line is what the user would see after the error is printed%0A        # if stacklevel was set to 1. If you are writing a wrapper around this,%0A        # increase the stacklevel accordingly.%0A        warnings.warn(self, stacklevel=stacklevel)%0A%0A# Python by default hides DeprecationWarnings, which we do not want.%0Awarnings.simplefilter(%22once%22, LcapyDeprecationWarning)%0A

Add LcapyDeprecationWarning