Infer model field types without plugin #2667
Closed
finlayacourt
started this conversation in
Ideas
Replies: 2 comments
-
It might be :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Realised it's already been discussed here. Seems like this might not be supported in mypy yet! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think it would be possible for the types of model fields to be infered without the need for the mypy plugin. This would significantly improve typechecking using pyright. It would require:
__set__
and__get__
methodsHere's a minimal example of just the Field and IntegerField types
I don't have much experience with mypy. Does this seem like a good idea?
Beta Was this translation helpful? Give feedback.
All reactions