dropbox / sqlalchemy-stubs

Mypy plugin and stubs for SQLAlchemy
Apache License 2.0
573 stars 101 forks source link

incompatible type to Index #172

Closed Dreamsorcerer closed 2 years ago

Dreamsorcerer commented 4 years ago

I get:

error: Argument 2 to "Index" has incompatible type "date"; expected "Union[TextClause, ColumnElement[Any], str]"  [arg-type]

The argument has been defined in the class as Column(Date, nullable=False). So, this should work correctly.

Maybe related to incomplete support in #4.