From 23cb1d3ac617f0a3ccdf702eeb638b99ec81d53e Mon Sep 17 00:00:00 2001 From: Simon Segerblom Rex Date: Thu, 14 Mar 2024 14:35:42 +0100 Subject: [PATCH] Fix mypy issue --- pre_commit/commands/install_uninstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index 152b1fb7..4b4401cb 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -67,7 +67,7 @@ def _install_hook_script( overwrite: bool = False, skip_on_missing_config: bool = False, git_dir: str | None = None, -) -> None: +) -> int: hook_path, legacy_path = _hook_paths(hook_type, git_dir=git_dir) # If the hooks directory is a symlink we need to be careful