Open eloff opened 2 years ago
hi eloff! I think this is because strawberry_django_plus
doesn't have a mypy plugin yet, maybe we should add one, or add support for it in our plugin 🤔
@bellini666 what do you think?
@patrick91 gql.type is just strawberry.type, shouldn't it work normally with the strawberry mypy plugin (enabled from my config I shared)?
@patrick91 gql.type is just strawberry.type, shouldn't it work normally with the strawberry mypy plugin (enabled from my config I shared)?
I'm not 100% sure, the plugin uses the import name to work, not sure if it is able to follow the import. Also it looks like strawberry django plus is missing the py.typed
file, that might be another issue :)
hi eloff! I think this is because
strawberry_django_plus
doesn't have a mypy plugin yet, maybe we should add one, or add support for it in our plugin thinking@bellini666 what do you think?
I like the idea! I don't know much of mypy plugins (don't actually use mypy, just pyright), but I think it would be nice to add support for it.
I'm not 100% sure, the plugin uses the import name to work, not sure if it is able to follow the import. Also it looks like strawberry django plus is missing the py.typed file, that might be another issue :)
I'm not really sure also how that works for mypy. But if adding a py.typed
file helps, I can add one there :)
...
return EditUserResponse(ok=True)
Produces the error when I run mypy.
My pyproject.toml looks like:
Strawberry version:
Upvote & Fund