Skip to content

Commit b6e8ea9

Browse files
Bump django from 5.0.6 to 5.0.7 (#2257)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Petter Friberg <petter_friberg@hotmail.com>
1 parent e41ffed commit b6e8ea9

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

django-stubs/utils/html.pyi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from collections.abc import Iterable
2+
from functools import cached_property
23
from html.parser import HTMLParser
34
from json import JSONEncoder
45
from re import Pattern
@@ -35,6 +36,10 @@ def urlize(text: str, trim_url_limit: int | None = ..., nofollow: bool = ..., au
3536
def avoid_wrapping(value: str) -> str: ...
3637
def html_safe(klass: type) -> type: ...
3738

39+
class CountsDict(dict[str, Any]):
40+
def __init__(self, *args: Any, word: str, **kwargs: Any) -> None: ...
41+
def __missing__(self, key: str) -> Any: ...
42+
3843
class Urlizer:
3944
trailing_punctuation_chars: str
4045
wrapping_punctuation: Incomplete
@@ -59,5 +64,11 @@ class Urlizer:
5964
def trim_punctuation(self, word: str) -> tuple[str, str, str]: ...
6065
@staticmethod
6166
def is_email_simple(value: str) -> bool: ...
67+
@cached_property
68+
def wrapping_punctuation_openings(self) -> str: ...
69+
@cached_property
70+
def trailing_punctuation_chars_no_semicolon(self) -> str: ...
71+
@cached_property
72+
def trailing_punctuation_chars_has_semicolon(self) -> bool: ...
6273

6374
urlizer: Urlizer

django-stubs/utils/translation/trans_real.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ from django.http.request import HttpRequest
1010
from typing_extensions import TypeAlias
1111

1212
CONTEXT_SEPARATOR: Literal["\x04"]
13-
ACCEPT_LANGUAGE_HEADER_MAX_LENGTH: int
13+
LANGUAGE_CODE_MAX_LENGTH: int
1414

1515
accept_language_re: Pattern[str]
1616
language_code_re: Pattern[str]

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pytest-shard==0.1.2
99
# Django deps:
1010
psycopg2-binary
1111
Django==4.2.13; python_version < '3.10'
12-
Django==5.0.6; python_version >= '3.10'
12+
Django==5.0.7; python_version >= '3.10'
1313
-e ./ext
1414
-e .[redis,compatible-mypy,oracle]
1515

scripts/stubtest/allowlist.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,9 @@ django.urls.resolvers.URLPattern.lookup_str
401401
django.urls.resolvers.URLResolver.url_patterns
402402
django.urls.resolvers.URLResolver.urlconf_module
403403
django.utils.connection.BaseConnectionHandler.settings
404+
django.utils.html.Urlizer.trailing_punctuation_chars_has_semicolon
405+
django.utils.html.Urlizer.trailing_punctuation_chars_no_semicolon
406+
django.utils.html.Urlizer.wrapping_punctuation_openings
404407
django.db.models.Q.referenced_base_fields
405408
django.db.models.query_utils.Q.referenced_base_fields
406409
django.contrib.gis.db.models.Q.referenced_base_fields

0 commit comments

Comments
 (0)