Open noahskelton opened 4 years ago
Flask-sqlalchemy-stubs depends on sqlalchemy-stubs. The filter_by function is located in sqlalchemy-stubs, I can't fix it. Since there're a lot of untyped functions in sqlalchemy-stubs, I recommand you to enable the option which allows untyped calls in mypy. Here's my mypy.ini on my work. https://github.com/ssfdust/smorest-sfs/blob/master/mypy.ini
mypy doesn't pass using the examples in this repo in my environment.
Steps to reproduce using Python 3.8.5:
pip install .
mypy examples
Output:
I get similar issues in my project.