mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-11 06:21:58 +08:00
19 lines
499 B
Python
19 lines
499 B
Python
from typing import Any, Callable, List, Optional, Set, Union
|
|
|
|
|
|
def user_passes_test(
|
|
test_func: Callable,
|
|
login_url: Optional[str] = ...,
|
|
redirect_field_name: str = ...,
|
|
) -> Callable: ...
|
|
def login_required(
|
|
function: Optional[Callable] = ...,
|
|
redirect_field_name: str = ...,
|
|
login_url: Optional[str] = ...,
|
|
) -> Callable: ...
|
|
def permission_required(
|
|
perm: Union[List[str], Set[str], str],
|
|
login_url: None = ...,
|
|
raise_exception: bool = ...,
|
|
) -> Callable: ...
|