mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 16:43:57 +00:00
requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
996eb72e2a
commit
3be686fa86
@@ -432,14 +432,12 @@ class CaptchaRealmCreationForm(RealmCreationForm):
|
||||
|
||||
# https://github.com/typeddjango/django-stubs/pull/2384#pullrequestreview-2813849209
|
||||
if TYPE_CHECKING:
|
||||
BaseSetPasswordForm: TypeAlias = SetPasswordForm[UserProfile] # type: ignore[type-var] # we don't subclass AbstractUser
|
||||
BaseSetPasswordForm: TypeAlias = SetPasswordForm[UserProfile]
|
||||
else:
|
||||
BaseSetPasswordForm = SetPasswordForm
|
||||
|
||||
|
||||
class LoggingSetPasswordForm(
|
||||
BaseSetPasswordForm # type: ignore[type-var] # we don't subclass AbstractUser
|
||||
):
|
||||
class LoggingSetPasswordForm(BaseSetPasswordForm):
|
||||
new_password1 = forms.CharField(
|
||||
label=_("New password"),
|
||||
widget=forms.PasswordInput(attrs={"autocomplete": "new-password"}),
|
||||
|
||||
Reference in New Issue
Block a user