summaryrefslogtreecommitdiffstats
path: root/pre_commit/parse_shebang.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-14 13:16:19 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-07-14 13:16:19 +0000
commitdea1ff8e8ce88840434d53977ff62683240f5b8f (patch)
tree60da4e1c735a2d2d89907609c5bb1b1638c4c648 /pre_commit/parse_shebang.py
parentAdding upstream version 2.19.0. (diff)
downloadpre-commit-dea1ff8e8ce88840434d53977ff62683240f5b8f.tar.xz
pre-commit-dea1ff8e8ce88840434d53977ff62683240f5b8f.zip
Adding upstream version 2.20.0.upstream/2.20.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/parse_shebang.py')
-rw-r--r--pre_commit/parse_shebang.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/pre_commit/parse_shebang.py b/pre_commit/parse_shebang.py
index 3fd3129..3ac933c 100644
--- a/pre_commit/parse_shebang.py
+++ b/pre_commit/parse_shebang.py
@@ -2,13 +2,10 @@ from __future__ import annotations
import os.path
from typing import Mapping
-from typing import TYPE_CHECKING
+from typing import NoReturn
from identify.identify import parse_shebang_from_file
-if TYPE_CHECKING:
- from typing import NoReturn
-
class ExecutableNotFoundError(OSError):
def to_output(self) -> tuple[int, bytes, None]: