Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mypy to 1.8.0 #1885

Merged
merged 5 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ We rely on different `django` and `mypy` versions:

| django-stubs | Mypy version | Django version | Django partial support | Python version |
|----------------|--------------|----------------|------------------------|----------------|
| (next release) | 1.7.x | 5.0 | 4.2, 4.1, 3.2 | 3.8 - 3.12 |
| (next release) | 1.8.x | 5.0 | 4.2, 4.1, 3.2 | 3.8 - 3.12 |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pushed an update to the README as well.

| 4.2.7 | 1.7.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
| 4.2.6 | 1.6.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
| 4.2.5 | 1.6.x | 4.2 | 4.1, 3.2 | 3.8 - 3.12 |
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ Django==5.0.0; python_version >= '3.10'
-e .[compatible-mypy]

# Overrides:
mypy==1.7.1
mypy==1.8.0
6 changes: 0 additions & 6 deletions scripts/stubtest/allowlist_todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -707,8 +707,6 @@ django.contrib.staticfiles.management.commands.findstatic.Command.handle_label
django.contrib.staticfiles.storage
django.core.cache.cache
django.core.checks.registry.CheckRegistry.register
django.core.files.File.__next__
django.core.files.base.File.__next__
django.core.files.locks.OVERLAPPED
django.core.files.locks.PVOID
django.core.files.locks.ULONG_PTR
Expand Down Expand Up @@ -1639,8 +1637,6 @@ django.http.HttpRequest.__init__
django.http.HttpRequest.get_raw_uri
django.http.HttpRequest.is_ajax
django.http.HttpRequest.readlines
django.http.HttpResponseBase.__iter__
django.http.HttpResponseBase.getvalue
django.http.StreamingHttpResponse.content
django.http.multipartparser.MultiPartParser.IE_sanitize
django.http.multipartparser.MultiPartParser.boundary_re
Expand All @@ -1650,8 +1646,6 @@ django.http.request.HttpRequest.is_ajax
django.http.request.HttpRequest.readlines
django.http.request.UploadHandlerList
django.http.request.parse_accept_header
django.http.response.HttpResponseBase.__iter__
django.http.response.HttpResponseBase.getvalue
django.http.response.StreamingHttpResponse.content
django.middleware.cache.CacheMiddleware.__init__
django.middleware.cache.CacheMiddleware.cache
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def find_stub_files(name: str) -> List[str]:

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

setup(
Expand Down