From aadf7169021fbcf4a61636eecb64a5affc7fc286 Mon Sep 17 00:00:00 2001 From: Talia Stocks <928827+taliastocks@users.noreply.github.com> Date: Fri, 14 Mar 2025 12:27:41 -0400 Subject: [PATCH] Update pre_commit/commands/hook_impl.py --- pre_commit/commands/hook_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/hook_impl.py b/pre_commit/commands/hook_impl.py index bd936133..d77b7627 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -113,7 +113,7 @@ def _rev_exists(rev: str) -> bool: return not subprocess.call(('git', 'rev-list', '--quiet', rev)) -def _is_ancestor(ancestor: str, rev: str): +def _is_ancestor(ancestor: str, rev: str) -> bool: return not subprocess.call( ('git', 'merge-base', '--is-ancestor', ancestor, rev), )