mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
typing: Remove now-unnecessary conditional import.
As a result of dropping support for trusty, we can remove our old pattern of putting `if False` before importing the typing module, which was essential for Python 3.4 support, but not required and maybe harmful on newer versions. cron_file_helper check_rabbitmq_consumers hash_reqs check_zephyr_mirror check_personal_zephyr_mirrors check_cron_file zulip_tools check_postgres_replication_lag api_test_helpers purge-old-deployments setup_venv node_cache clean_venv_cache clean_node_cache clean_emoji_cache pg_backup_and_purge restore-backup generate_secrets zulip-ec2-configure-interfaces diagnose check_user_zephyr_mirror_liveness
This commit is contained in:
@@ -7,10 +7,7 @@ import configparser
|
||||
from collections import defaultdict
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
if False:
|
||||
# See https://zulip.readthedocs.io/en/latest/testing/mypy.html#mypy-in-production-scripts
|
||||
from typing import Dict
|
||||
from typing import Dict
|
||||
|
||||
states = {
|
||||
0: "OK",
|
||||
|
@@ -1,8 +1,6 @@
|
||||
import time
|
||||
|
||||
if False:
|
||||
# See https://zulip.readthedocs.io/en/latest/testing/mypy.html#mypy-in-production-scripts
|
||||
from typing import Tuple
|
||||
from typing import Tuple
|
||||
|
||||
def nagios_from_file(results_file):
|
||||
# type: (str) -> Tuple[int, str]
|
||||
|
Reference in New Issue
Block a user