mirror of
https://github.com/zulip/zulip.git
synced 2026-06-24 21:08:25 +08:00
This stub file allows us to annotate view functions using the actual types present in the bodies of the functions, rather than everything having the type REQ.
12 lines
287 B
Python
12 lines
287 B
Python
from typing import Any
|
|
|
|
class JsonableError(Exception):
|
|
error = ... # type: Any
|
|
def to_json_error_msg(self) -> Any: ...
|
|
|
|
class RequestVariableMissingError(JsonableError): ...
|
|
|
|
def REQ(*args: Any, **kwargs: Any) -> Any: ...
|
|
|
|
def has_request_variables(view_func: Any) -> Any: ...
|