summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/event/legacy.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/event/legacy.py')
-rw-r--r--lib/sqlalchemy/event/legacy.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sqlalchemy/event/legacy.py b/lib/sqlalchemy/event/legacy.py
index 0dbf69504..f75ed121f 100644
--- a/lib/sqlalchemy/event/legacy.py
+++ b/lib/sqlalchemy/event/legacy.py
@@ -14,6 +14,17 @@ from .. import util
def _legacy_signature(since, argnames, converter=None):
+ """legacy sig decorator
+
+
+ :param since: string version for deprecation warning
+ :param argnames: list of strings, which is *all* arguments that the legacy
+ version accepted, including arguments that are still there
+ :param converter: lambda that will accept tuple of this full arg signature
+ and return tuple of new arg signature.
+
+ """
+
def leg(fn):
if not hasattr(fn, "_legacy_signatures"):
fn._legacy_signatures = []