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 5
5
import random
6
6
import re
7
7
from typing import Any
8
+ from typing import NoReturn
8
9
from typing import overload
9
10
from typing import Sequence
10
- from typing import TYPE_CHECKING
11
11
12
12
import pre_commit .constants as C
13
13
from pre_commit import parse_shebang
16
16
from pre_commit .util import cmd_output_b
17
17
from pre_commit .xargs import xargs
18
18
19
- if TYPE_CHECKING :
20
- from typing import NoReturn
21
-
22
19
FIXED_RANDOM_SEED = 1542676187
23
20
24
21
SHIMS_RE = re .compile (r'[/\\]shims[/\\]' )
Original file line number Diff line number Diff line change 2
2
3
3
import os .path
4
4
from typing import Mapping
5
- from typing import TYPE_CHECKING
5
+ from typing import NoReturn
6
6
7
7
from identify .identify import parse_shebang_from_file
8
8
9
- if TYPE_CHECKING :
10
- from typing import NoReturn
11
-
12
9
13
10
class ExecutableNotFoundError (OSError ):
14
11
def to_output (self ) -> tuple [int , bytes , None ]:
You can’t perform that action at this time.
0 commit comments