]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix mypy tests on python 3.8
authorFederico Caselli <cfederico87@gmail.com>
Thu, 29 Jun 2023 19:54:26 +0000 (21:54 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Thu, 29 Jun 2023 19:54:26 +0000 (21:54 +0200)
Change-Id: I018b7be48511d8c749c25ef20e2ff1f92e02fc48

test/typing/plain_files/sql/operators.py

index 41981d155b4d31e32e8d28a0bee83fe9227a7481..fea8daa6a26da8a67bce9d6620cacaf79eb7bd52 100644 (file)
@@ -1,5 +1,6 @@
 from decimal import Decimal
 from typing import Any
+from typing import List
 
 from sqlalchemy import ARRAY
 from sqlalchemy import BigInteger
@@ -20,7 +21,7 @@ class A(Base):
     __tablename__ = "a"
     id: Mapped[int]
     string: Mapped[str]
-    arr: Mapped[list[int]] = mapped_column(ARRAY(Integer))
+    arr: Mapped[List[int]] = mapped_column(ARRAY(Integer))
 
 
 lt1: "ColumnElement[bool]" = A.id > A.id