Closed
Description
Bug report
What's wrong
The latest version available (3.15.0) requires a different mypy version from what the latest django-stubs latest version (5.0.4) requires.
Here's a traceback when trying to use the latest version from each package
31.98 INFO: pip is looking at multiple versions of djangorestframework-stubs[compatible-mypy] to determine which version is compatible with other requirements. This could take a while.
32.00 ERROR: Cannot install django-stubs[compatible-mypy]==5.0.4, djangorestframework-stubs[compatible-mypy]==3.15.0 and mypy==1.11.1 because these package versions have conflicting dependencies.
32.00
32.00 The conflict is caused by:
32.00 The user requested mypy==1.11.1
32.00 django-stubs[compatible-mypy] 5.0.4 depends on mypy~=1.11.0; extra == "compatible-mypy"
32.00 djangorestframework-stubs[compatible-mypy] 3.15.0 depends on mypy~=1.10.0; extra == "compatible-mypy"
32.00
32.00 To fix this you could try to:
32.00 1. loosen the range of package versions you've specified
32.00 2. remove package versions to allow pip to attempt to solve the dependency conflict
32.00
32.26 ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
How is that should be
It looks like that the breaking change can be fixed by releasing the current main branch
System information
- OS: Windows 11
python
version: 3.12.5django
version: 4.2.11mypy
version: 1.11.1django-stubs
version: 5.0.4