mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-08 04:54:48 +08:00
Add gzip_page decorator (#41)
* Add gzip_page decorator * Update to preserve Callable
This commit is contained in:
committed by
Maxim Kurnikov
parent
8978ad471f
commit
050c1b8887
5
django-stubs/views/decorators/gzip.pyi
Normal file
5
django-stubs/views/decorators/gzip.pyi
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
from typing import Callable, TypeVar
|
||||||
|
|
||||||
|
_C = TypeVar("_C", bound=Callable)
|
||||||
|
|
||||||
|
def gzip_page(view_func: _C) -> _C: ...
|
||||||
Reference in New Issue
Block a user