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

Add __get__ to the column and relationship to improve usage

Open CaselIT opened this issue 4 years ago • 1 comments
trafficstars

when the plugin is not supported, for example when using other type checkers.

Description

This was taken from the dropbox stubs.

Fixes #170

Checklist

This pull request is:

  • [ ] A documentation / typographical error fix
    • Good to go, no issue or tests are needed
  • [x] A short code fix
    • please include the issue number, and create an issue if none exists, which must include a complete example of the issue. one line code fixes without an issue and demonstration will not be accepted.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests. one line code fixes without tests will not be accepted.
  • [ ] A new feature implementation
    • please include the issue number, and create an issue if none exists, which must include a complete example of how the feature would look.
    • Please include: Fixes: #<issue number> in the commit message
    • please include tests.

Have a nice day!

CaselIT avatar Sep 01 '21 20:09 CaselIT

There is also column_property(), deferred(), query_property(), etc

CaselIT avatar Sep 02 '21 15:09 CaselIT