Re: [sqlalchemy] Type hints for result objects from orm select

2022-04-04 Thread Mike Bayer
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

[sqlalchemy] Type hints for result objects from orm select

2022-04-04 Thread Rohit Krishnamoorthy
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