Skip to content

Commit 843fd91

Browse files
authored
Drop hard dependency on mypy (#495)
As announced in 3.14.4 release notes, we will drop the hard dependency on mypy. Users of djangorestframework-stubs with mypy will need to add their own dependency on mypy, or use djangorestframework-stubs[compatible-mypy] extra. Currently mypy remains the only supported type checker. Improvements for other type checkers may be considered in the future, pull requests welcome. * Drop hard mypy dependency * Transitively depend on django-stubs with [compatible-mypy] extra * Use newer URL dependency syntax
1 parent 133e572 commit 843fd91

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ djangorestframework==3.14.0
66
types-pytz==2023.3.1.1
77
types-requests==2.31.0.10
88
types-urllib3==1.26.25.14
9-
git+https://github.com/typeddjango/django-stubs
10-
git+https://github.com/typeddjango/django-stubs#subdirectory=ext
9+
django-stubs[compatible-mypy] @ git+https://github.com/typeddjango/django-stubs
10+
django-stubs-ext @ git+https://github.com/typeddjango/django-stubs#subdirectory=ext
1111
-e .[compatible-mypy,coreapi,markdown]

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ def find_stub_files(name: str) -> List[str]:
2020
readme = f.read()
2121

2222
dependencies = [
23-
"mypy>=0.991",
2423
"django-stubs>=4.2.5",
2524
"typing-extensions>=3.10.0",
2625
"requests>=2.0.0",
@@ -30,7 +29,7 @@ def find_stub_files(name: str) -> List[str]:
3029

3130
# Keep compatible-mypy major.minor version pinned to what we use in CI (requirements.txt)
3231
extras_require = {
33-
"compatible-mypy": ["mypy~=1.6.0"],
32+
"compatible-mypy": ["mypy~=1.6.0", "django-stubs[compatible-mypy]"],
3433
"coreapi": ["coreapi>=2.0.0"],
3534
"markdown": ["types-Markdown>=0.1.5"],
3635
}

0 commit comments

Comments
 (0)