Skip to content

Commit

Permalink
Fixed types for vary_on_headers (#1370)
Browse files Browse the repository at this point in the history
Co-authored-by: Marti Raudsepp <[email protected]>
  • Loading branch information
RyanWalker277 and intgr authored Feb 24, 2023
1 parent eb6c006 commit a3cf15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django-stubs/views/decorators/vary.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ from typing import Any, TypeVar

_F = TypeVar("_F", bound=Callable[..., Any])

def vary_on_headers(*headers: Any) -> Callable: ...
def vary_on_headers(*headers: str) -> Callable[[_F], _F]: ...
def vary_on_cookie(func: _F) -> _F: ...

0 comments on commit a3cf15a

Please sign in to comment.