Skip to content

Commit edb70ae

Browse files
Bump django to 5.1.7 (#2532)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 967ff99 commit edb70ae

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

django-stubs/contrib/admin/models.pyi

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, ClassVar, Literal, overload
1+
from typing import Any, ClassVar
22
from uuid import UUID
33

44
from django.db import models
@@ -22,26 +22,13 @@ class LogEntryManager(models.Manager[LogEntry]):
2222
action_flag: int,
2323
change_message: Any = ...,
2424
) -> LogEntry: ...
25-
@overload
2625
def log_actions(
2726
self,
2827
user_id: int,
2928
queryset: QuerySet[Model],
3029
action_flag: int,
3130
change_message: str | list[Any] = "",
32-
*,
33-
single_object: Literal[True],
34-
) -> LogEntry: ...
35-
@overload
36-
def log_actions(
37-
self,
38-
user_id: int,
39-
queryset: QuerySet[Model],
40-
action_flag: int,
41-
change_message: str | list[Any] = "",
42-
*,
43-
single_object: Literal[False] = False,
44-
) -> list[LogEntry]: ...
31+
) -> list[LogEntry] | LogEntry: ...
4532

4633
class LogEntry(models.Model):
4734
action_time: models.DateTimeField

django-stubs/utils/ipv6.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ MAX_IPV6_ADDRESS_LENGTH: int
66
def clean_ipv6_address(
77
ip_str: Any, unpack_ipv4: bool = False, error_message: str = ..., max_length: int = 39
88
) -> str: ...
9-
def is_valid_ipv6_address(ip_str: str | IPv6Address) -> bool: ...
9+
def is_valid_ipv6_address(ip_addr: str | IPv6Address) -> bool: ...

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pytest-shard==0.1.2
77
# Django deps:
88
psycopg2-binary
99
Django==4.2.16; python_version < '3.10'
10-
Django==5.1.5; python_version >= '3.10'
10+
Django==5.1.7; python_version >= '3.10'
1111
-e ./ext
1212
-e .[redis,compatible-mypy,oracle]
1313

0 commit comments

Comments
 (0)