Skip to content

Commit

Permalink
feat: Add missing stubs
Browse files Browse the repository at this point in the history
Add stubs for django.contrib.auth.decorators::login_not_required
  • Loading branch information
BradleyKirton committed Aug 22, 2024
1 parent 807090a commit e8baa6c
Showing 1 changed file with 1 addition and 0 deletions.
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]: ...

0 comments on commit e8baa6c

Please sign in to comment.