From: Federico Caselli Date: Mon, 5 May 2025 21:03:18 +0000 (+0200) Subject: fix failing typing test X-Git-Tag: rel_2_0_41~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6fb61ba28a85ebfaae729b107a5874145fdbf9a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix failing typing test fix failing test added in 4ac02007e030232f57226aafbb9313c8ff186a62 Change-Id: If0c62fac8744caa98bd04f808ef381ffb04afd7f (cherry picked from commit 46996843876a7635705686f67057fba9c795d787) --- diff --git a/test/typing/plain_files/engine/engine_result.py b/test/typing/plain_files/engine/engine_result.py index 7ff20b7846..eedcc30947 100644 --- a/test/typing/plain_files/engine/engine_result.py +++ b/test/typing/plain_files/engine/engine_result.py @@ -1,4 +1,3 @@ -from typing import reveal_type from typing import Tuple from sqlalchemy import column @@ -25,7 +24,7 @@ def row_one(row: Row[Tuple[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]