Files
zulip/zerver
Anders Kaseorg 7e9db327b3 request: Improve validator type so mypy can check it against REQ.
Old: a validator returns None on success and returns an error string
on error.

New: a validator returns the validated value on success and raises
ValidationError on error.

This allows mypy to catch mismatches between the annotated type of a
REQ parameter and the type that the validator actually validates.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
2020-06-20 22:29:15 -07:00
..
2020-06-11 16:45:32 -07:00
2020-06-11 16:45:32 -07:00
2020-06-11 16:45:32 -07:00
2020-06-11 16:45:32 -07:00