diff options
Diffstat (limited to 'lib/sqlalchemy/exc.py')
-rw-r--r-- | lib/sqlalchemy/exc.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exc.py b/lib/sqlalchemy/exc.py index cc096ad03..a6da844dc 100644 --- a/lib/sqlalchemy/exc.py +++ b/lib/sqlalchemy/exc.py @@ -589,6 +589,9 @@ class NotSupportedError(DatabaseError): class SADeprecationWarning(DeprecationWarning): """Issued for usage of deprecated APIs.""" + deprecated_since = None + "Indicates the version that started raising this deprecation warning" + class RemovedIn20Warning(SADeprecationWarning): """Issued for usage of APIs specifically deprecated in SQLAlchemy 2.0. @@ -599,6 +602,9 @@ class RemovedIn20Warning(SADeprecationWarning): """ + deprecated_since = "1.4" + "Indicates the version that started raising this deprecation warning" + class SAPendingDeprecationWarning(PendingDeprecationWarning): """A similar warning as :class:`.SADeprecationWarning`, this warning @@ -606,6 +612,9 @@ class SAPendingDeprecationWarning(PendingDeprecationWarning): """ + deprecated_since = None + "Indicates the version that started raising this deprecation warning" + class SAWarning(RuntimeWarning): """Issued at runtime.""" |