Skip to content

Commit 80f9ad6

Browse files
sobolevnintgr
andauthored
Update mypy to 1.8.0 (#1885)
All changes in `stubtest`'s allowlist is related to new `@type_check_only` feature: - https://github.com/typeddjango/django-stubs/blob/125f31a81116f5f149c3e868d950608571e9a5e8/django-stubs/core/files/base.pyi#L31-L32 - https://github.com/typeddjango/django-stubs/blob/125f31a81116f5f149c3e868d950608571e9a5e8/django-stubs/http/response.pyi#L87-L91 * Update setup.py * Update requirements.txt * Update README --------- Co-authored-by: Marti Raudsepp <marti@juffo.org>
1 parent 3a62412 commit 80f9ad6

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ We rely on different `django` and `mypy` versions:
4949

5050
| django-stubs | Mypy version | Django version | Django partial support | Python version |
5151
|----------------|--------------|----------------|------------------------|----------------|
52-
| (next release) | 1.7.x | 5.0 | 4.2, 4.1, 3.2 | 3.8 - 3.12 |
52+
| (next release) | 1.8.x | 5.0 | 4.2, 4.1, 3.2 | 3.8 - 3.12 |
5353
| 4.2.7 | 1.7.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
5454
| 4.2.6 | 1.6.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
5555
| 4.2.5 | 1.6.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Django==5.0.0; python_version >= '3.10'
1313
-e .[compatible-mypy]
1414

1515
# Overrides:
16-
mypy==1.7.1
16+
mypy==1.8.0

scripts/stubtest/allowlist_todo.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,6 @@ django.contrib.staticfiles.management.commands.findstatic.Command.handle_label
707707
django.contrib.staticfiles.storage
708708
django.core.cache.cache
709709
django.core.checks.registry.CheckRegistry.register
710-
django.core.files.File.__next__
711-
django.core.files.base.File.__next__
712710
django.core.files.locks.OVERLAPPED
713711
django.core.files.locks.PVOID
714712
django.core.files.locks.ULONG_PTR
@@ -1639,8 +1637,6 @@ django.http.HttpRequest.__init__
16391637
django.http.HttpRequest.get_raw_uri
16401638
django.http.HttpRequest.is_ajax
16411639
django.http.HttpRequest.readlines
1642-
django.http.HttpResponseBase.__iter__
1643-
django.http.HttpResponseBase.getvalue
16441640
django.http.StreamingHttpResponse.content
16451641
django.http.multipartparser.MultiPartParser.IE_sanitize
16461642
django.http.multipartparser.MultiPartParser.boundary_re
@@ -1650,8 +1646,6 @@ django.http.request.HttpRequest.is_ajax
16501646
django.http.request.HttpRequest.readlines
16511647
django.http.request.UploadHandlerList
16521648
django.http.request.parse_accept_header
1653-
django.http.response.HttpResponseBase.__iter__
1654-
django.http.response.HttpResponseBase.getvalue
16551649
django.http.response.StreamingHttpResponse.content
16561650
django.middleware.cache.CacheMiddleware.__init__
16571651
django.middleware.cache.CacheMiddleware.cache

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def find_stub_files(name: str) -> List[str]:
3232

3333
# Keep compatible-mypy major.minor version pinned to what we use in CI (requirements.txt)
3434
extras_require = {
35-
"compatible-mypy": ["mypy~=1.7.0"],
35+
"compatible-mypy": ["mypy~=1.8.0"],
3636
}
3737

3838
setup(

0 commit comments

Comments
 (0)