mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
partial: Replace returns plugin with an annotation.
The returns plugin hasn’t been updated for mypy ≥ 1.6. This annotation is more limited in that it only supports a fixed number of positional arguments and no keyword arguments, but is good enough for our purposes. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
87f228fcb0
commit
d32d4434dd
@@ -21,9 +21,9 @@ sanity_check.check_venv(__file__)
|
||||
import aiohttp
|
||||
from aiohttp import hdrs, web
|
||||
from aiohttp.http_exceptions import BadStatusLine
|
||||
from returns.curry import partial
|
||||
|
||||
from tools.lib.test_script import add_provision_check_override_param, assert_provisioning_status_ok
|
||||
from zerver.lib.partial import partial
|
||||
|
||||
if "posix" in os.name and os.geteuid() == 0:
|
||||
raise RuntimeError("run-dev should not be run as root.")
|
||||
|
||||
Reference in New Issue
Block a user