]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use Dict[], not dict[] in mypy test
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Feb 2023 21:28:36 +0000 (16:28 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 7 Feb 2023 21:28:36 +0000 (16:28 -0500)
Fixes: #9253
Change-Id: I8a96fd165c5306566ab02aab25b30558530c9751

test/ext/mypy/plain_files/keyfunc_dict.py

index 0e18697bdbc37823fcb9ed0a85521422be1bbc39..831861000ce8782f515ad6dd1858d1c7ba8ac9d7 100644 (file)
@@ -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",
     )