strawberry-graphql / strawberry-sqlalchemy

A SQLAlchemy Integration for strawberry-graphql
MIT License
93 stars 27 forks source link

Support mypy type checking #160

Closed davidroeca closed 6 months ago

davidroeca commented 6 months ago

Currently, imports lead to the following error (on mypy 1.10.0):

app/graphql/schemas.py:9: error: Need type annotation for "strawberry_sqlalchemy_mapper"  [var-annotated]

Describe the Bug

I've noticed that this library has a py.typed file within it, but it appears as though it isn't being recognized

System Information

Additional Context

N/A

Upvote & Fund

Fund with Polar

davidroeca commented 6 months ago

:facepalm: a variable matching the module name was declared, which led to the problem. Irrelevant to this library--sorry for opening