sqlalchemy-stubs icon indicating copy to clipboard operation
sqlalchemy-stubs copied to clipboard

Infer better types for most used functions and methods

Open ilevkivskyi opened this issue 7 years ago • 2 comments

These functions/classes/methods require better stubs (and most of them likely a plugin):

  • [ ] Table (+ likely a plugin)
  • [ ] Connection, Index
  • [x] Column
  • [ ] RowProxy, ResultProxy
  • [x] Integer, String, DateTime
  • [ ] select, insert, update, where, join (+ likely a plugin)
  • [ ] and_, or_, func (+ likely a plugin)
  • [x] relationship
  • [ ] UniqueConstraint, ForeignKey
  • [ ] create_engine

ilevkivskyi avatar Aug 27 '18 15:08 ilevkivskyi

Solving #9 will help with some of these.

ilevkivskyi avatar Aug 27 '18 16:08 ilevkivskyi

select may be the most complicated here because of a weird (from typing point of view) signature -- it accepts fixed length lists:

s = select([users, addesses])
t = select([users.c.id, users.c.name])

ilevkivskyi avatar Aug 27 '18 16:08 ilevkivskyi