We dont have a system for per-column type hinting right now.    pep-484 and 
related peps unfortunately do not support effective means of representing 
custom tuple-like structures.   The closest they have is pep-646, but 
unfortunately this pep does not provide enough functionality for database tools 
and ORMs to be able to make use of it in order to type database rows 
generically.



On Mon, Apr 4, 2022, at 2:02 AM, Rohit Krishnamoorthy wrote:
> How to do types hints for result of select statement
> can i use the orm class of the table itself as type for return value
> 
> 
> -- 
> SQLAlchemy - 
> The Python SQL Toolkit and Object Relational Mapper
>  
> http://www.sqlalchemy.org/
>  
> To post example code, please provide an MCVE: Minimal, Complete, and 
> Verifiable Example. See http://stackoverflow.com/help/mcve for a full 
> description.
> --- 
> You received this message because you are subscribed to the Google Groups 
> "sqlalchemy" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sqlalchemy+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sqlalchemy/6be6d676-1add-4cf8-bfd7-f0a4a327c2afn%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/sqlalchemy/6be6d676-1add-4cf8-bfd7-f0a4a327c2afn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/328ab5bc-5a53-4e10-bdff-fc9c3f4772b1%40www.fastmail.com.

Reply via email to