dropbox / dropbox/sqlalchemy-stubs

error: Argument 1 to "correlate" of "Exists" has incompatible type "Type[MyModel]"; expected "FromClause"

Open
#176 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
583
Forks
96
PR merge metrics
No merged PRs in 30d

Description

I am passing `MyModel` class to the [`correlate` of an `Exists` clause](https://github.com/dropbox/sqlalchemy-stubs/blob/9b9d26e16fee5a17a58089d4c2ba6c9850a976e5/sqlalchemy-stubs/sql/selectable.pyi#L310) and getting the the following error:
>error: Argument 1 to "correlate" of "Exists" has incompatible type "Type[MyModel]"; expected "FromClause"

where `MyModel` is a subclass of `Base` (`Base = declarative_base(...)`)

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.