typing: Remove ‘if False’ guard for typing imports.

typing is in the Python 3.5 standard library.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-04-18 15:49:45 -07:00 committed by Tim Abbott
parent 75d1fe2b41
commit fe72f3b131
7 changed files with 7 additions and 16 deletions

View file

@ -8,8 +8,6 @@ import argparse
import zulip
import sys
import traceback
if False:
from typing import Any, Dict
usage = """./irc-mirror.py --irc-server=IRC_SERVER --channel=<CHANNEL> --nick-prefix=<NICK> --stream=<STREAM> [optional args]

View file

@ -13,8 +13,6 @@ import os
import sys
import os.path
import pysvn
if False:
from typing import Any, Dict, List, Optional, Text, Tuple, Union
sys.path.insert(0, os.path.dirname(__file__))

View file

@ -19,7 +19,6 @@ sys.path.insert(0, os.path.dirname(__file__))
import zulip_trac_config as config
VERSION = "0.9"
if False:
from typing import Any, Dict
if config.ZULIP_API_PATH is not None:

View file

@ -10,7 +10,6 @@ import hashlib
import zephyr
import zulip
if False:
from typing import Any, Dict, List, Set, Tuple
parser = optparse.OptionParser()

View file

@ -1,6 +1,5 @@
#!/usr/bin/env python3
if False:
from typing import Any, Dict, Generator, List, Tuple
import os

View file

@ -4,7 +4,6 @@ import os
import sys
import glob
import subprocess
if False:
from typing import Any, Dict, Optional
ZULIP_BOTS_VERSION = "0.6.4"

View file

@ -1,7 +1,6 @@
#!/usr/bin/env python3
import sys
if False:
from typing import Any, Dict, Optional
ZULIP_BOTSERVER_VERSION = "0.6.4"