django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

Support mypy 0.971

Open DamianZaremba opened this issue 2 years ago • 0 comments

mypy 0.971 was released a short while ago (https://github.com/python/mypy/releases/tag/v0.971).

django-stubs currently enforces a version less than 0.970 (https://github.com/typeddjango/django-stubs/blob/master/setup.py#L34), please enable support for 0.971.

Due to changes https://github.com/python/mypy/pull/11143 the tests currently fail when path appending;

  • https://github.com/typeddjango/pytest-mypy-plugins/blob/master/pytest_mypy_plugins/item.py#L388 appending to the path
  • https://github.com/typeddjango/django-stubs/blob/master/tests/typecheck/test_config.yml#L62

A scratch branch which updates the requirements while patching out the tests is @ https://github.com/DamianZaremba/django-stubs/tree/bump-mypy-0.970, as I'm not sure of your preferred way to deal with the tests.

DamianZaremba avatar Jul 19 '22 23:07 DamianZaremba