José Duarte08/24/2022, 7:55 AM
? I understand the motivation behind it but in the end, the type is wrong and mypy will complain. Is there a setting for mypy I am missing?
value: NonNullableType = None
Jeremiah08/24/2022, 10:06 PM
. Perhaps you are running mypy with the
flag, which disables this type of inference? (docs). Interestingly, mypy is currently evaluating a two-year-old proposal to make
the default, but it has not been done yet AFAIK