From ac3883aae81379e8432a33d16f8d0833758d55cd Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 7 Feb 2023 16:28:36 -0500 Subject: [PATCH] use Dict[], not dict[] in mypy test Fixes: #9253 Change-Id: I8a96fd165c5306566ab02aab25b30558530c9751 --- test/ext/mypy/plain_files/keyfunc_dict.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/ext/mypy/plain_files/keyfunc_dict.py b/test/ext/mypy/plain_files/keyfunc_dict.py index 0e18697bdb..831861000c 100644 --- a/test/ext/mypy/plain_files/keyfunc_dict.py +++ b/test/ext/mypy/plain_files/keyfunc_dict.py @@ -1,4 +1,5 @@ import typing +from typing import Dict from typing import Optional from sqlalchemy import ForeignKey @@ -18,7 +19,7 @@ class Item(Base): id: Mapped[int] = mapped_column(primary_key=True) - notes: Mapped[dict[str, "Note"]] = relationship( + notes: Mapped[Dict[str, "Note"]] = relationship( collection_class=attribute_keyed_dict("keyword"), cascade="all, delete-orphan", ) -- 2.47.3