mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
9 lines
293 B
Python
9 lines
293 B
Python
from typing import TypeVar, Callable, Optional
|
|
from django.http import HttpResponse
|
|
|
|
ViewFuncT = TypeVar('ViewFuncT', bound=Callable[..., HttpResponse])
|
|
|
|
# See zerver/lib/validator.py for more details of Validators,
|
|
# including many examples
|
|
Validator = Callable[[str, object], Optional[str]]
|