summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/util/typing.py
diff options
context:
space:
mode:
authorFederico Caselli <cfederico87@gmail.com>2022-11-26 19:24:49 +0100
committerFederico Caselli <cfederico87@gmail.com>2022-11-26 19:25:37 +0100
commit25c2b7dd105a6622eff2c7631d3c2d6eb978dc1f (patch)
tree46ae527de593ddcbfcf115ca7d61edad9aa083b5 /lib/sqlalchemy/util/typing.py
parent34e29f7b225cf1305e151af9d03ef95f42a9dbcc (diff)
downloadsqlalchemy-25c2b7dd105a6622eff2c7631d3c2d6eb978dc1f.tar.gz
Add new script to sync test files adding future annotation
Create a new test file test_tm_future_annotations_sync.py that's obtained from test_tm_future_annotations.py by using the new script sync_test_files. This files includes the ``from __future__ import annotations`` It also turns out we had some bugs in there and we can also support some additional typing things Change-Id: Iac005df206d45a55345d9d88d67a80ce799d449f
Diffstat (limited to 'lib/sqlalchemy/util/typing.py')
-rw-r--r--lib/sqlalchemy/util/typing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/util/typing.py b/lib/sqlalchemy/util/typing.py
index dcbc15825..0c8e5a633 100644
--- a/lib/sqlalchemy/util/typing.py
+++ b/lib/sqlalchemy/util/typing.py
@@ -174,7 +174,7 @@ def eval_expression(expression: str, module_name: str) -> Any:
annotation = eval(expression, base_globals, None)
except Exception as err:
raise NameError(
- f"Could not de-stringify annotation {expression}"
+ f"Could not de-stringify annotation {expression!r}"
) from err
else:
return annotation