I do not know if there was a particular reason for why it was not implemented before. But, I took the liberty to mimic what was done for similar fields on the upstream.
Essentially, The __init__ was overloaded to distinguish between null=True and null=False to signal the resulting type, Optional[date] or date respectively.
I do not know if there was a particular reason for why it was not implemented before. But, I took the liberty to mimic what was done for similar fields on the upstream.
Essentially, The
__init__
was overloaded to distinguish betweennull=True
andnull=False
to signal the resulting type,Optional[date]
ordate
respectively.