We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
Originally posted on the gitter:
I'm coming across this issue where I'm trying to use a Field in a type annotation something like: Dict[Field, Any] If i use mypy on this with django-stubs enabled, i get this error message:
I'm coming across this issue where I'm trying to use a Field in a type annotation something like: Dict[Field, Any]
Field
Dict[Field, Any]
If i use mypy on this with django-stubs enabled, i get this error message:
`Missing type parameters for generic type`
so then i change it to Dict[Field[Any, Any], Any], and that fixes the problem in mypy, but at runtime, it fails:
Dict[Field[Any, Any], Any]
`TypeError: 'type' object is not subscriptable`
The text was updated successfully, but these errors were encountered:
Could you confirm whether errors goes away when you specify disallow_any_generics=False in the config file?
disallow_any_generics=False
Currently django-stubs is incompatible with this setting, I've created issue for that https://github.com/mkurnikov/django-stubs/issues/64.
django-stubs
Sorry, something went wrong.
Yes, it seems the errors do go away when you specify that setting in the config file.
Closing in favor of #64
No branches or pull requests
Originally posted on the gitter:
The text was updated successfully, but these errors were encountered: