Skip to content

Commit b585ad3

Browse files
committed
chore: Move import to type checking block
1 parent 9cf6317 commit b585ad3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

staged_script/staged_script.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
from datetime import datetime, timedelta, timezone
2727
from pathlib import Path
2828
from subprocess import CompletedProcess
29-
from typing import Any, Callable, NamedTuple, NoReturn
29+
from typing import Any, NamedTuple, NoReturn, TYPE_CHECKING
3030

3131
import __main__
3232
import rich.traceback
@@ -40,6 +40,9 @@
4040
from tenacity.stop import stop_after_attempt, stop_after_delay
4141
from tenacity.wait import wait_fixed
4242

43+
if TYPE_CHECKING:
44+
from collections.abc import Callable
45+
4346
rich.traceback.install()
4447

4548

0 commit comments

Comments
 (0)