Skip to content

Type hints for result objects from select #10760

Discussion options

You must be logged in to vote

we dont have any documented way to type the rows with the column names, just as tuples with the individual types like Row[Tuple[int, str, list[int]]]. in 2.1 we will finally fix the tuple part and you'll get Row[int, str, list[int]]. but for the names, sure a protocol seems like the best idea.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sector119
Comment options

Answer selected by sector119
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants