From b0fefeac86e5473a73a6cd6027d94ee8ce75a596 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Wed, 7 Aug 2024 10:53:53 +0300 Subject: [PATCH] Bump django from 5.0.7 to 5.0.8 (#2325) * Bump django from 5.0.7 to 5.0.8 * [pre-commit.ci] auto fixes from pre-commit.com hooks --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- django-stubs/db/models/expressions.pyi | 4 +++- django-stubs/utils/html.pyi | 1 + requirements.txt | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/django-stubs/db/models/expressions.pyi b/django-stubs/db/models/expressions.pyi index 304050c70..fb438c4aa 100644 --- a/django-stubs/db/models/expressions.pyi +++ b/django-stubs/db/models/expressions.pyi @@ -195,7 +195,9 @@ class RawSQL(Expression): def __init__(self, sql: str, params: Sequence[Any], output_field: Field | None = ...) -> None: ... class Star(Expression): ... -class DatabaseDefault(Expression): ... + +class DatabaseDefault(Expression): + def __init__(self, expression: Expression, output_field: Field | None = None) -> None: ... class Col(Expression): target: Field diff --git a/django-stubs/utils/html.pyi b/django-stubs/utils/html.pyi index b509d0462..8b135dbf2 100644 --- a/django-stubs/utils/html.pyi +++ b/django-stubs/utils/html.pyi @@ -10,6 +10,7 @@ from django.utils.functional import SimpleLazyObject, _StrOrPromise from django.utils.safestring import SafeData, SafeString VOID_ELEMENTS: set[str] +MAX_URL_LENGTH: int def escape(text: Any) -> SafeString: ... def escapejs(value: Any) -> SafeString: ... diff --git a/requirements.txt b/requirements.txt index b404c86a6..ae05571ee 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ pytest-shard==0.1.2 # Django deps: psycopg2-binary Django==4.2.13; python_version < '3.10' -Django==5.0.7; python_version >= '3.10' +Django==5.0.8; python_version >= '3.10' -e ./ext -e .[redis,compatible-mypy,oracle]