mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-16 00:37:11 +08:00
8 lines
335 B
Python
8 lines
335 B
Python
from typing import Callable, TypeVar, overload
|
|
|
|
_C = TypeVar("_C", bound=Callable)
|
|
@overload
|
|
def staff_member_required(view_func: _C = ..., redirect_field_name: str = ..., login_url: str = ...) -> _C: ...
|
|
@overload
|
|
def staff_member_required(view_func: None = ..., redirect_field_name: str = ..., login_url: str = ...) -> Callable: ...
|