Skip to content

Commit 5e93adb

Browse files
committed
Use str for key_prefix
1 parent eac957c commit 5e93adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django-stubs/views/decorators/cache.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ from typing import Any
44
from . import _ViewFuncT
55

66
def cache_page(
7-
timeout: float | None, *, cache: Any | None = ..., key_prefix: Any | None = ...
7+
timeout: float | None, *, cache: Any | None = ..., key_prefix: str | None = ...
88
) -> Callable[[_ViewFuncT], _ViewFuncT]: ...
99
def cache_control(**kwargs: Any) -> Callable[[_ViewFuncT], _ViewFuncT]: ...
1010
def never_cache(view_func: _ViewFuncT, /) -> _ViewFuncT: ...

0 commit comments

Comments
 (0)