From 050c1b8887447fa25cebe6c8d6ab3d26a07b9951 Mon Sep 17 00:00:00 2001 From: Matt Basta Date: Wed, 6 Mar 2019 12:16:24 -0600 Subject: [PATCH] Add gzip_page decorator (#41) * Add gzip_page decorator * Update to preserve Callable --- django-stubs/views/decorators/gzip.pyi | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 django-stubs/views/decorators/gzip.pyi diff --git a/django-stubs/views/decorators/gzip.pyi b/django-stubs/views/decorators/gzip.pyi new file mode 100644 index 0000000..1990839 --- /dev/null +++ b/django-stubs/views/decorators/gzip.pyi @@ -0,0 +1,5 @@ +from typing import Callable, TypeVar + +_C = TypeVar("_C", bound=Callable) + +def gzip_page(view_func: _C) -> _C: ...