mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-09 10:20:00 -04:00
fix failing typing test
fix failing test added in4ac02007e0Change-Id: If0c62fac8744caa98bd04f808ef381ffb04afd7f (cherry picked from commit4699684387)
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user