Re: [sqlalchemy] Column vs InstrumentedAttribute

2023-02-23 Thread Mike Bayer
your "derive" argument would need to be opened up to accept ColumnElement. if you are going for being fully typed like this you would do way better by targeting 2.0 instead of 1.4. the typing in 1.4 is nor very good and also not compatible with that of 2.0. On Thu, Feb 23, 2023, at 10:56

Re: [sqlalchemy] Column vs InstrumentedAttribute

2023-02-23 Thread Val Huber
Yes, Mike, I agree - definitely seeing correct runtime behavior. Just looking to get past the somewhat scary alerts (which, btw, do not occur in PyCharm). Care and feeding of the IDE, I supposeā€¦ Not super urgent, but would be good to clear up... > On Feb 23, 2023, at 7:39 PM, Mike Bayer >

Re: [sqlalchemy] Column vs InstrumentedAttribute

2023-02-23 Thread Mike Bayer
those are typing issues being reported by Pylance and do not affect the runtime behavior of the application. Pylance refers to typing stubs for SQLAlchemy 1.4 which don't apply to SQLAlchemy 1.3. On Thu, Feb 23, 2023, at 7:36 PM, Val Huber wrote: > Hello, All > > In SQLAlchemy 1.4.29, the I