dropbox / sqlalchemy-stubs

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

select([text('*')]) doesn't type #130

Open victornoel opened 4 years ago

victornoel commented 4 years ago

I may be missing something, but apparently the following code:

select([text('*')])

Gives this type error: List item 0 has incompatible type "TextClause"; expected "Union[ColumnElement[Any], FromClause, int]"

I would have expected to be able to write the above, it works well at runtime.