Skip to content

Commit 8d3094f

Browse files
authored
Merge pull request #75 from delfick/dependency-bad
Making django-stubs and mypy optional dependencies again
2 parents 3e1a87c + f9a9919 commit 8d3094f

5 files changed

Lines changed: 22 additions & 5 deletions

File tree

‎docs/api/changelog.rst‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
Changelog
44
---------
55

6+
.. _release-0.10.1:
7+
8+
0.10.1 - 14 July 2026
9+
10+
* Returned mypy and django-stubs to being optional dependencies
11+
612
.. _release-0.10.0:
713

814
0.10.0 - 14 July 2026

‎docs/api/installation.rst‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ Install from pypi::
55

66
python -m pip install extended-mypy-django-plugin
77

8+
And to enforce a lower bound of mypy and django-stubs that works with this plugin::
9+
10+
python -m pip install extended-mypy-django-plugin[django-stubs-mypy]
11+
812
Enabling this plugin in a project is adding either to ``mypy.ini``:
913

1014
.. code-block:: ini
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.10.0"
1+
VERSION = "0.10.1"

‎pyproject.toml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ authors = [
1313
]
1414
requires-python = ">=3.13"
1515

16-
dependencies = [
16+
[project.optional-dependencies]
17+
django-stubs-mypy = [
18+
# This is the lowest version of django-stubs and mypy supported
19+
# However there are valid uses of this plugin that don't require django-stubs or mypy to be installed
20+
# and so it is provided as an optional extra `extended-mypy-django-plugin[django-stubs-mypy]`
1721
"mypy >= 2.2.0",
1822
"django-stubs >= 6.0.5",
1923
]

‎uv.lock‎

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)