sbdchd / django-types

:doughnut: Type stubs for Django
MIT License
188 stars 62 forks source link

`Field(null=True | False)` was broken on `pyright@1.1.378` #264

Open minmax opened 2 weeks ago

minmax commented 2 weeks ago

When pyright updated to version 1.1.378, I got a bunch of errors with nullable database fields.

As it turns out, you now need to set real values ​​for the default argument values.

Relative pyright issue https://github.com/microsoft/pyright/issues/8860