mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
mypy: Remove superfluous older 'type: ignore' annotations.
This commit is contained in:
committed by
Tim Abbott
parent
67f1a72aae
commit
b782db48e1
@@ -53,14 +53,13 @@ def server_is_up(server, log_file):
|
||||
def test_server_running(force=False, external_host='testserver',
|
||||
log_file=None, dots=False, use_db=True):
|
||||
# type: (bool, str, str, bool, bool) -> Iterator[None]
|
||||
log = sys.stdout
|
||||
if log_file:
|
||||
if os.path.exists(log_file) and os.path.getsize(log_file) < 100000:
|
||||
log = open(log_file, 'a')
|
||||
log.write('\n\n')
|
||||
else:
|
||||
log = open(log_file, 'w')
|
||||
else:
|
||||
log = sys.stdout # type: ignore # BinaryIO vs. IO[str]
|
||||
|
||||
set_up_django(external_host)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user