We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f651f27 commit ca10ee9Copy full SHA for ca10ee9
django-stubs/contrib/admin/views/decorators.pyi
@@ -1,7 +1,11 @@
1
-from typing import Callable, TypeVar, overload
+from typing import Callable, Optional, TypeVar, overload
2
3
_C = TypeVar("_C", bound=Callable)
4
@overload
5
-def staff_member_required(view_func: _C = ..., redirect_field_name: str = ..., login_url: str = ...) -> _C: ...
+def staff_member_required(
6
+ view_func: _C = ..., redirect_field_name: Optional[str] = ..., login_url: str = ...
7
+) -> _C: ...
8
-def staff_member_required(view_func: None = ..., redirect_field_name: str = ..., login_url: str = ...) -> Callable: ...
9
10
+ view_func: None = ..., redirect_field_name: Optional[str] = ..., login_url: str = ...
11
+) -> Callable: ...
0 commit comments