django-stubs

Mypy complaining about Name "Optional" is not defined without the use of Optional

Mypy complaining about Name "Optional" is not defined without the use of Optional Question: I’ve recently started using mypy, and have run into some weird problems that i cannot for the life of me seem to figure out. I’m using mypy 0.950, django-stubs 1.11.0, django 4.0.5 and python 3.10.2. Running mypy through the command line …

Total answers: 1