-
-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mypy errors when using Pydantic integration #1830
Comments
Experiencing the same. Furthermore I have similar issues with |
hey @motherofcoconuts and @olivier-thatch are you using our mypy plugin? i fixed that
|
hey @thejaminator i am indeed: pyproject.toml
|
@motherofcoconuts uhoh. i've figured out why |
Pulled from my poetry.lock file:
|
@motherofcoconuts as a temporary workaround use the
basically
instead of
|
@thejaminator @olivier-thatch is using the
and experience it for both types with the |
ah ok, yeah seems like the mypy plugin isn't working well with those partials :( See python/mypy#1484 |
@motherofcoconuts for your case, where you manually define your own decorator. unfortunately there are issues with mypy that i write here #1833 |
Hello,
I'm trying to use the Pydantic integration and getting a few mypy errors.
Simplified version of the code:
This causes 2 errors:
@strawberry.experimental.pydantic.input(model=UserCreate, all_fields=True)
causes this error:instance = input_data.to_pydantic()
causes this error:Package versions:
Upvote & Fund
The text was updated successfully, but these errors were encountered: