-
-
Notifications
You must be signed in to change notification settings - Fork 485
Catch type error on django models #52
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
Comments
syastrov
added a commit
to syastrov/django-stubs
that referenced
this issue
Mar 23, 2019
…h other due to fallback_to_any = True. Fixes typeddjango#52.
Looks like a bug caused by setting fallback_to_any to True on the Model type in the plugin. |
syastrov
added a commit
to syastrov/django-stubs
that referenced
this issue
Mar 28, 2019
…h other due to fallback_to_any = True. Fixes typeddjango#52. - Added a stub for __getstate__ to Model. - Added a stub for clean() to Model. - Correct arg type for sort_dependencies so they are covariant (Iterable rather than List). Test ignores: - Added some test ignores in cases where a model inherits from 2 different base models. - Added some test ignores for cases that MyPy flags as errors due to variable redefinitions or imports that are incompatible types.
syastrov
added a commit
to syastrov/django-stubs
that referenced
this issue
Mar 28, 2019
…h other due to fallback_to_any = True. Fixes typeddjango#52. - Added a stub for __getstate__ to Model. - Added a stub for clean() to Model. - Correct arg type for sort_dependencies so they are covariant (Iterable rather than List). Test ignores: - Added some test ignores in cases where a model inherits from 2 different base models. - Added some test ignores for cases that MyPy flags as errors due to variable redefinitions or imports that are incompatible types.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
It is possible to have type errors for django models?
It would help a lot if this could be caught earlier on the editor.
Because all models inherit from
models.Model
andI' m trying to figure if there is an option to detect this errors.
The text was updated successfully, but these errors were encountered: