Skip to content

Commit 089926d

Browse files
committed
Move type-checking imports into type-checking block
1 parent 7bb3c0e commit 089926d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: build_docs.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
import sys
3434
from argparse import ArgumentParser, Namespace
3535
from bisect import bisect_left as bisect
36-
from collections.abc import Iterable, Sequence
3736
from contextlib import contextmanager, suppress
3837
from dataclasses import dataclass
3938
from datetime import datetime as dt
@@ -51,6 +50,10 @@
5150
import urllib3
5251
import zc.lockfile
5352

53+
TYPE_CHECKING = False
54+
if TYPE_CHECKING:
55+
from collections.abc import Iterable, Sequence
56+
5457
try:
5558
from os import EX_OK
5659
from os import EX_SOFTWARE as EX_FAILURE

0 commit comments

Comments
 (0)