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/_selectable_constructors.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/sql/_selectable_constructors.py') diff --git a/lib/sqlalchemy/sql/_selectable_constructors.py b/lib/sqlalchemy/sql/_selectable_constructors.py index d3cf207da..9043aa6d0 100644 --- a/lib/sqlalchemy/sql/_selectable_constructors.py +++ b/lib/sqlalchemy/sql/_selectable_constructors.py @@ -5,6 +5,8 @@ # This module is part of SQLAlchemy and is released under # the MIT License: https://www.opensource.org/licenses/mit-license.php +from __future__ import annotations + from typing import Any from typing import Union -- cgit v1.2.1