File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 55import random
66import re
77from typing import Any
8+ from typing import NoReturn
89from typing import overload
910from typing import Sequence
10- from typing import TYPE_CHECKING
1111
1212import pre_commit .constants as C
1313from pre_commit import parse_shebang
1616from pre_commit .util import cmd_output_b
1717from pre_commit .xargs import xargs
1818
19- if TYPE_CHECKING :
20- from typing import NoReturn
21-
2219FIXED_RANDOM_SEED = 1542676187
2320
2421SHIMS_RE = re .compile (r'[/\\]shims[/\\]' )
Original file line number Diff line number Diff line change 22
33import os .path
44from typing import Mapping
5- from typing import TYPE_CHECKING
5+ from typing import NoReturn
66
77from identify .identify import parse_shebang_from_file
88
9- if TYPE_CHECKING :
10- from typing import NoReturn
11-
129
1310class ExecutableNotFoundError (OSError ):
1411 def to_output (self ) -> tuple [int , bytes , None ]:
You can’t perform that action at this time.
0 commit comments