From 5bf22fc7e3c392c8bd44315ca2d06d7dca7d084e Mon Sep 17 00:00:00 2001 From: sotech117 Date: Thu, 31 Jul 2025 17:27:24 -0400 Subject: add code for analysis of data --- venv/lib/python3.8/site-packages/dash/_obsolete.py | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 venv/lib/python3.8/site-packages/dash/_obsolete.py (limited to 'venv/lib/python3.8/site-packages/dash/_obsolete.py') diff --git a/venv/lib/python3.8/site-packages/dash/_obsolete.py b/venv/lib/python3.8/site-packages/dash/_obsolete.py new file mode 100644 index 0000000..5b5ba3b --- /dev/null +++ b/venv/lib/python3.8/site-packages/dash/_obsolete.py @@ -0,0 +1,23 @@ +# pylint: disable=too-few-public-methods +from .exceptions import ObsoleteAttributeException + + +class ObsoleteAttribute: + def __init__(self, message: str, exc=ObsoleteAttributeException): + self.message = message + self.exc = exc + + +class ObsoleteChecker: + _obsolete_attributes = { + "run_server": ObsoleteAttribute("app.run_server has been replaced by app.run"), + "long_callback": ObsoleteAttribute( + "app.long_callback has been removed, use app.callback(..., background=True) instead" + ), + } + + def __getattr__(self, name: str): + if name in self._obsolete_attributes: + err = self._obsolete_attributes[name] + raise err.exc(err.message) + return getattr(self.__dict__, name) -- cgit v1.2.3-70-g09d2