fix failing typing test

fix failing test added in 4ac02007e0

Change-Id: If0c62fac8744caa98bd04f808ef381ffb04afd7f
(cherry picked from commit 4699684387)
This commit is contained in:
Federico Caselli
2025-05-05 23:03:18 +02:00
parent e80ecc9e08
commit b6fb61ba28
@@ -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]