mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
These changes are in one commit, since the previous typing of check_url does not match the centralized strict definition (object/Any vs Text), actually already used elsewhere in validator.py, and also had a different API. check_url is updated here to match the API of the other check_* functions, ie. val is an object (not Text) & returns Optional[str]. It also now checks the value is text explicitly at run-time, which was only type-checked previously. Tests are updated accordingly.
1.1 KiB
1.1 KiB