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

`literal_column('foo', sqlalchemy.Integer)` should be `ColumnClause[int]`, not `ColumnClause[TypeEngine[int]]`.

In the sqlalchemy version 1.4, the method isnot was renamed to is_not, and the old method was left for backward compatibility. (see https://docs.sqlalchemy.org/en/14/core/sqlelement.html#sqlalchemy.sql.expression.ColumnOperators.is_not) However, if one try to use is_not...

I have installed sqlaclhemy-stubs in my local environment (I have tried both versions from pypi and the development version from the github), but when I tried to run mypy analysis...

# Changes Add `Column.__set__` annotations. # Motivation Pyright was unable to understand the `Column` setter behavior.

I'm running the latest (at the time of writing) `mypy` (0.950) and `sqlalchemy-stubs` (0.4) and hitting this issue: ```python from sqlalchemy import Column, Integer from sqlalchemy.ext.declarative import declarative_base Base =...

From SQLAlchemy 1.3 from documentation: https://docs.sqlalchemy.org/en/14/orm/session_api.html#sqlalchemy.orm.Session.bulk_save_objects ``` method sqlalchemy.orm.Session.bulk_save_objects(objects, return_defaults=False, update_changed_only=True, preserve_order=True) ``` > **preserve_order** – > > when True, the order of inserts and updates matches exactly the order...

dialect should be a string a list/tuple/set of strings. Not a Dialect object. https://github.com/sqlalchemy/sqlalchemy/blob/rel_1_4_18/lib/sqlalchemy/sql/ddl.py#L158 Closes #181