From 5c6081ddb03447697f909a03572b6d6d79e61b71 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 13 Feb 2022 16:45:18 -0500 Subject: pep-484 for sqlalchemy.event; use future annotations __future__.annotations mode allows us to use non-string annotations for argument and return types in most cases, but more importantly it removes a large amount of runtime overhead that would be spent in evaluating the annotations. Change-Id: I2f5b6126fe0019713fc50001be3627b664019ede References: #6810 --- lib/sqlalchemy/sql/util.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql/util.py') diff --git a/lib/sqlalchemy/sql/util.py b/lib/sqlalchemy/sql/util.py index c0de1902f..e3e358cdb 100644 --- a/lib/sqlalchemy/sql/util.py +++ b/lib/sqlalchemy/sql/util.py @@ -8,6 +8,8 @@ """High level utilities which build upon other modules here. """ +from __future__ import annotations + from collections import deque from itertools import chain import typing -- cgit v1.2.1