Skip to content

Commit 15ef11e

Browse files
committed
level up pep-484 on engine result
Have each result subclass be generic to the kind of row/object it returns. rework things so that a significant number of "type ignores" can go away and also allow asyncio to more cleanly proxy the result objects. Change-Id: Ia3ddb2cb52f5856839bd8c9c46f0289ab4b10405
1 parent 8254e3a commit 15ef11e

File tree

3 files changed

+205
-146
lines changed

3 files changed

+205
-146
lines changed

lib/sqlalchemy/engine/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ def scalars(
11501150
statement: Executable,
11511151
parameters: Optional[_CoreSingleExecuteParams] = None,
11521152
execution_options: Optional[_ExecuteOptionsParameter] = None,
1153-
) -> ScalarResult:
1153+
) -> ScalarResult[Any]:
11541154
"""Executes and returns a scalar result set, which yields scalar values
11551155
from the first column of each row.
11561156

0 commit comments

Comments
 (0)