diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-10-09 06:23:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-10-09 06:23:31 +0000 |
commit | 08605d822cdf05ee12d3f5d936ee1b4c4f46bb70 (patch) | |
tree | d733c49718aafd45ed7614531bc87b7ab1efc706 /pre_commit/util.py | |
parent | Adding upstream version 3.8.0. (diff) | |
download | pre-commit-08605d822cdf05ee12d3f5d936ee1b4c4f46bb70.tar.xz pre-commit-08605d822cdf05ee12d3f5d936ee1b4c4f46bb70.zip |
Adding upstream version 4.0.1.upstream/4.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/util.py')
-rw-r--r-- | pre_commit/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre_commit/util.py b/pre_commit/util.py index 12aa3c0..e199d08 100644 --- a/pre_commit/util.py +++ b/pre_commit/util.py @@ -25,7 +25,7 @@ def force_bytes(exc: Any) -> bytes: @contextlib.contextmanager -def clean_path_on_failure(path: str) -> Generator[None, None, None]: +def clean_path_on_failure(path: str) -> Generator[None]: """Cleans up the directory on an exceptional failure.""" try: yield |