dropbox / dropbox/sqlalchemy-stubs

Fix column descriptors

Open
#5 2 comments 0 reactions 1 assignee Claimed by @ilevkivskyi View on GitHub
bug priority-low topic-plugins
Dominant language
Python
Stars
583
Forks
96
PR merge metrics
No merged PRs in 30d

Description

We need to add a simple plugin that would replace `Column[X]` with `InstrumentedAttribute[Column[X], X]` and make the latter a descriptor instead instead of the former. In addition the plugin would generate a more precise `__init__`.

The plugin should act only in classes that derive from a declarative base, currently this is not always possible, so the plugin should probably also kick in for classes with fallback to `Any`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.