custom_check: Use unconditional type imports.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-06-02 21:13:40 -07:00
committed by Tim Abbott
parent 789e612c70
commit dd4d8968da

View File

@@ -1,8 +1,6 @@
from typing import List, TYPE_CHECKING from typing import List
from zulint.custom_rules import RuleList from zulint.custom_rules import Rule, RuleList
if TYPE_CHECKING:
from zulint.custom_rules import Rule
# Rule help: # Rule help:
# By default, a rule applies to all files within the extension for which it is specified (e.g. all .py files) # By default, a rule applies to all files within the extension for which it is specified (e.g. all .py files)