Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed types for vary_on_headers #1370

Merged
merged 8 commits into from
Feb 24, 2023
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: ...