top | item 45677605 (no title) blef | 4 months ago I'm curious to see how you successfully got working well the types as I'm lost in the nightmare for a few days. discuss order hn newest frio|4 months ago In `pyproject.toml`: "django-stubs>=5.2", "django-stubs-ext>=5.2.2", In `settings.py`, add: import django_stubs_ext django_stubs_ext.monkeypatch() With that, it seems _mostly_ OK, though I had to toggle off some of basedpyright's typechecking.
frio|4 months ago In `pyproject.toml`: "django-stubs>=5.2", "django-stubs-ext>=5.2.2", In `settings.py`, add: import django_stubs_ext django_stubs_ext.monkeypatch() With that, it seems _mostly_ OK, though I had to toggle off some of basedpyright's typechecking.
frio|4 months ago