From: Mike Bayer Date: Tue, 7 Feb 2023 21:28:36 +0000 (-0500) Subject: use Dict[], not dict[] in mypy test X-Git-Tag: rel_2_0_3~6^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ac3883aae81379e8432a33d16f8d0833758d55cd;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git use Dict[], not dict[] in mypy test Fixes: #9253 Change-Id: I8a96fd165c5306566ab02aab25b30558530c9751 --- 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", )