Add gzip_page decorator (#41)

* Add gzip_page decorator

* Update to preserve Callable
This commit is contained in:
Matt Basta authored and Maxim Kurnikov committed 2019-03-06 21:16:24 +03:00
1 parent 8978ad471f
commit 050c1b8887
1 file changed
+5
+5
View File
@@ -0,0 +1,5 @@
from typing import Callable, TypeVar
_C = TypeVar("_C", bound=Callable)
def gzip_page(view_func: _C) -> _C: ...