Skip to content

Commit b700b71

Browse files
committed
fix sequence import
1 parent 87dd8c3 commit b700b71

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/enforce_match_arg_in_assert_produces_warning.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@
1111
1212
pre-commit run enforce-match-arg-in-assert-produces-warning --all-files
1313
"""
14-
14+
from __future__ import annotations
1515

1616
import argparse
1717
import ast
18-
from collections.abc import Sequence
1918
import sys
19+
from typing import TYPE_CHECKING
20+
21+
if TYPE_CHECKING:
22+
from collections.abc import Sequence
2023

2124
ERROR_MESSAGE = (
2225
"{path}:{lineno}:{col_offset}: "

0 commit comments

Comments
 (0)