Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add missing stubs #2348

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions django-stubs/contrib/auth/decorators.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def user_passes_test(
def login_required(redirect_field_name: str | None = ..., login_url: str | None = ...) -> Callable[[_VIEW], _VIEW]: ...
@overload
def login_required(function: _VIEW, redirect_field_name: str | None = ..., login_url: str | None = ...) -> _VIEW: ...
def login_not_required(view_func: _VIEW) -> _VIEW: ...
def permission_required(
perm: Iterable[str] | str, login_url: str | None = ..., raise_exception: bool = ...
) -> Callable[[_VIEW], _VIEW]: ...
1 change: 0 additions & 1 deletion scripts/stubtest/allowlist_todo_django51.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ django.contrib.admin.models.LogEntryManager.log_actions
django.contrib.admin.options.ModelAdmin.log_deletions
django.contrib.auth.base_user.BaseUserManager.make_random_password
django.contrib.auth.checks.check_middleware
django.contrib.auth.decorators.login_not_required
django.contrib.auth.forms.AdminPasswordChangeForm.clean_password2
django.contrib.auth.forms.AdminPasswordChangeForm.usable_password_help_text
django.contrib.auth.forms.BaseUserCreationForm.clean_password2
Expand Down
Loading