mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
mypy: Upgrade from 0.720 to 0.730.
Fixes #13269. Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
43bba63549
commit
40f4ead738
@@ -32,7 +32,7 @@ def set_up_django(external_host):
|
||||
os.environ['PYTHONUNBUFFERED'] = 'y'
|
||||
|
||||
def assert_server_running(server, log_file):
|
||||
# type: (subprocess.Popen, Optional[str]) -> None
|
||||
# type: (subprocess.Popen[bytes], Optional[str]) -> None
|
||||
"""Get the exit code of the server, or None if it is still running."""
|
||||
if server.poll() is not None:
|
||||
message = 'Server died unexpectedly!'
|
||||
@@ -41,7 +41,7 @@ def assert_server_running(server, log_file):
|
||||
raise RuntimeError(message)
|
||||
|
||||
def server_is_up(server, log_file):
|
||||
# type: (subprocess.Popen, Optional[str]) -> bool
|
||||
# type: (subprocess.Popen[bytes], Optional[str]) -> bool
|
||||
assert_server_running(server, log_file)
|
||||
try:
|
||||
# We could get a 501 error if the reverse proxy is up but the Django app isn't.
|
||||
|
||||
Reference in New Issue
Block a user