Add gzip_page decorator (#41)

* Add gzip_page decorator

* Update to preserve Callable
This commit is contained in:
Matt Basta
2019-03-06 12:16:24 -06:00
committed by Maxim Kurnikov
parent 8978ad471f
commit 050c1b8887

View File

@@ -0,0 +1,5 @@
from typing import Callable, TypeVar
_C = TypeVar("_C", bound=Callable)
def gzip_page(view_func: _C) -> _C: ...