DJAS002
: Set fields as not required, proper type annotations
#12
Labels
dynamic-stubs
Issue related to dynamic stub generation
Follow up on #10:
NotRequired
: is there a reliable way of determining this?Field.get_default()
seems to always return a value even though a field value should be provided. Django seems to try inserting the value, so it might not be possible to know in advance? Should we apply some common sense and set fields as being not required if there's adefault
/db_default
ornull=True
? see this discussion. Implemented, but should also look at the mypy plugin:The text was updated successfully, but these errors were encountered: