We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class Foo(serializers.PrimaryKeyRelatedField[FooModel]): ...
serializers.PrimaryKeyRelatedField[FooModel] TypeError: 'type' object is not subscriptable
Success: no issues found in 1 source file
Linux f16759b1b324 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 aarch64 GNU/Linux
python
django
mypy
django-stubs
Also, it isn't asked for by the template, but:
djangorestframework
djangorestframework-stubs
The text was updated successfully, but these errors were encountered:
I've seen some open issues about similar problems, but:
PrimaryKeyRelatedField
I think this is an unexpected defect, but please let me know if I've just misunderstood the other issues.
Sorry, something went wrong.
Hope this helps #255 (comment)
No branches or pull requests
Bug report
What's wrong
How is that should be
System information
Linux f16759b1b324 5.10.104-linuxkit #1 SMP PREEMPT Thu Mar 17 17:05:54 UTC 2022 aarch64 GNU/Linux
python
version: 3.10.6django
version: 4.0.7mypy
version: 0.961django-stubs
version: 1.12.0Also, it isn't asked for by the template, but:
djangorestframework
version: 3.13.1djangorestframework-stubs
version: 1.7.0The text was updated successfully, but these errors were encountered: