Skip to content

Commit

Permalink
Update django to 5.1.1 (#2360)
Browse files Browse the repository at this point in the history
* Update django to 5.1.1

* [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>
  • Loading branch information
sobolevn and pre-commit-ci[bot] committed Sep 4, 2024
1 parent a6d4e6f commit df12deb
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions django-stubs/contrib/auth/forms.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from collections.abc import Iterable
from logging import Logger
from typing import Any, TypeVar

from django import forms
Expand All @@ -12,6 +13,8 @@ from django.forms.widgets import Widget
from django.http.request import HttpRequest
from typing_extensions import TypeAlias

logger: Logger

UserModel: TypeAlias = type[_UserModel]
_User = TypeVar("_User", bound=AbstractBaseUser)

Expand Down
4 changes: 3 additions & 1 deletion django-stubs/db/models/expressions.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ class Ref(Expression):
def __init__(self, refs: str, source: Expression) -> None: ...

class ExpressionList(Func):
def __init__(self, *expressions: BaseExpression | Combinable, **extra: Any) -> None: ...
def __init__(
self, *expressions: BaseExpression | Combinable, output_field: Field | None = None, **extra: Any
) -> None: ...

class OrderByList(Func): ...

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pytest-shard==0.1.2
# Django deps:
psycopg2-binary
Django==4.2.13; python_version < '3.10'
Django==5.1; python_version >= '3.10'
Django==5.1.1; python_version >= '3.10'
-e ./ext
-e .[redis,compatible-mypy,oracle]

Expand Down
4 changes: 2 additions & 2 deletions scripts/stubtest/allowlist_todo_django51.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ django.contrib.auth.forms.AdminPasswordChangeForm.usable_password_help_text
django.contrib.auth.forms.BaseUserCreationForm.clean_password2
django.contrib.auth.forms.SetPasswordForm.clean_new_password2
django.contrib.auth.forms.SetPasswordMixin
django.contrib.auth.forms.SetUnusablePasswordMixin
django.contrib.auth.forms.AdminUserCreationForm
django.contrib.auth.hashers.SHA1PasswordHasher
django.contrib.auth.hashers.UnsaltedMD5PasswordHasher
django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher
Expand Down Expand Up @@ -133,8 +135,6 @@ django.db.backends.oracle.features.DatabaseFeatures.supports_comparing_boolean_e
django.db.backends.oracle.features.DatabaseFeatures.supports_frame_exclusion
django.db.backends.postgresql.base.DatabaseWrapper.close_pool
django.db.backends.postgresql.base.DatabaseWrapper.pool
django.db.backends.postgresql.base.ensure_role
django.db.backends.postgresql.base.ensure_timezone
django.db.backends.postgresql.features.DatabaseFeatures.django_test_skips
django.db.backends.postgresql.features.DatabaseFeatures.is_postgresql_16
django.db.backends.postgresql.features.DatabaseFeatures.supports_frame_exclusion
Expand Down

0 comments on commit df12deb

Please sign in to comment.