sqlalchemy2-stubs
sqlalchemy2-stubs copied to clipboard
Add __get__ to the column and relationship to improve usage
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!
There is also column_property(), deferred(), query_property(), etc