from strawberry_django_plus import gql
@gql.type
class EditUserResponse:
ok: bool
reason: Optional[str] = None
...
return EditUserResponse(ok=True)
Produces the error when I run mypy.
My pyproject.toml looks like:
[tool.mypy]
disallow_untyped_defs = false
ignore_missing_imports = true
plugins = [
"strawberry.ext.mypy_plugin",
"mypy_django_plugin.main",
]
[tool.django-stubs]
django_settings_module = "config.settings.test"
pythonVersion = "3.10"
pythonPlatform = "Linux"
Strawberry version:
"strawberry-django-plus": {
"hashes": [
"sha256:9c6be105942c2405a595cb9a1163d69c501301333054da0c08a377bd3633a92e",
"sha256:c79c474ea71f61b78f8639eb8b68c698927cbe7b1fa05aabdc6b97be9223364a"
],
"index": "pypi",
"version": "==1.14.1"
},
"strawberry-graphql": {
"hashes": [
"sha256:93cf617fb830f97ef5fad67655de5e6f9079c37271c696efbdb1fc299a3ff0f0",
"sha256:cedb10b4981b183b318187c78d9b666fd44464fb63fafcbfe55c624372bb33dd"
],
"index": "pypi",
"version": "==0.114.0"
},
"strawberry-graphql-django": {
"hashes": [
"sha256:d66dd816211b5e4a60920a9e0697c1df63d8e14edf02ab04e1c1b696d19eda33",
"sha256:f2c55da70d02cb67ee225995798a4b5f26b802228a4fa8fb931eb55e50c775dd"
],
"markers": "python_version >= '3.7' and python_full_version < '4.0.0'",
"version": "==0.3.1"
},
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too