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

Mypy plugin and stubs for SQLAlchemy

Results 96 sqlalchemy-stubs issues
Sort by recently updated
recently updated
newest added

Hello, The latest version of the stubs makes mypy log an error on `insert(SAModel).from_select(...)`: ``` Argument 1 to "Insert" has incompatible type "Type[SAModel]"; expected "Union[str, Selectable]" ``` while this is...

bug
priority-low

I see many issues and pull requests without any response. Is this still being maintained and worth contributing? Anything the community can do to help?

Follow up of #95 SQLAlchemy allows setting UUID columns to either a string representation of a UUID (e.g '46260785-9b7e-4a59-824f-af994a510673') or to a Python uuid.UUID object. Fixes #94 Includes #179 as...

`Table::append_constraint` should accept an `Index` as well. As what the document said: > An Index can also be manually associated with a Table, either through inline declaration or using Table.append_constraint()

SQLAlchemy allows setting UUID columns to either a string representation of a UUID (e.g '46260785-9b7e-4a59-824f-af994a510673') or to a Python uuid.UUID object. Fixes #94

I'm not sure these docs are in the form conducive to how you're thinking about publishing docs once this project leaves alpha/beta, but I thought I'd record the steps I...

* Add stuff to metadata: table name, columns, foreign keys * Try to guess is a relationship is iterable

Goal of this PR is to type orm's `Query` objects. This will allow to type-check stuff like: ```python session.query(Employee) # -> Query[Employee] session.query(Employee).get(123) # -> Employee session.query(Employee, Invoice) # ->...