Replies: 1 comment
-
well there is no way to make mypy and ModelSchema friends , because this class schema is created at runtime so it's either you ignore it or define each attribute of the schema manually: class ServiceSchemaIn(Schema): # Not ModelSchema
product_id: int
created: datetime
... |
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
-
ModelSchema Definition:
Default mypy run can’t detect attributes of django model from schema:
Just a fragment of Django model definition:
Sooo, I will be extremely grateful for any help or advice about mypy + django ninja !
Beta Was this translation helpful? Give feedback.
All reactions