]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix failing typing test
authorFederico Caselli <cfederico87@gmail.com>
Mon, 5 May 2025 21:03:18 +0000 (23:03 +0200)
committerFederico Caselli <cfederico87@gmail.com>
Mon, 5 May 2025 21:03:18 +0000 (23:03 +0200)
fix failing test added in 4ac02007e030232f57226aafbb9313c8ff186a62

Change-Id: If0c62fac8744caa98bd04f808ef381ffb04afd7f

test/typing/plain_files/engine/engine_result.py

index c8731618cc835ea8f6f0819edcd61891a507ccd3..553a04309a2ef1484275d96e55d51e64fcf0b1e7 100644 (file)
@@ -1,5 +1,3 @@
-from typing import reveal_type
-
 from sqlalchemy import column
 from sqlalchemy.engine import Result
 from sqlalchemy.engine import Row
@@ -26,7 +24,7 @@ def row_one(row: Row[int, str, bool]) -> None:
     # EXPECTED_TYPE: Any
     reveal_type(rm[column("bar")])
 
-    # EXPECTED_MYPY: Invalid index type "int" for "RowMapping"; expected type "str | SQLCoreOperations[Any]"  # noqa: E501
+    # EXPECTED_MYPY_RE: Invalid index type "int" for "RowMapping"; expected type "(str \| SQLCoreOperations\[Any\]|Union\[str, SQLCoreOperations\[Any\]\])"  # noqa: E501
     rm[3]