zulip/zerver/lib/request.pyi

15 lines
515 B
Python
Raw Normal View History

# This mypy stubs file ensures that mypy can correctly analyze REQ.
from typing import Any, Callable, Text, TypeVar
2016-07-22 15:10:19 +02:00
from django.http import HttpResponse
from zerver.lib.exceptions import JsonableError as JsonableError
ViewFuncT = TypeVar('ViewFuncT', bound=Callable[..., HttpResponse])
class RequestVariableMissingError(JsonableError): ...
class RequestVariableConversionError(JsonableError): ...
def REQ(*args: Any, **kwargs: Any) -> Any: ...
2016-07-22 15:10:19 +02:00
def has_request_variables(view_func: ViewFuncT) -> ViewFuncT: ...