From 473fc3a348cd09b4ffca319daff32464d10d8ef9 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Mon, 17 May 2021 13:15:48 +0100 Subject: forward reference for IndexFile --- git/index/fun.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/index/fun.py') diff --git a/git/index/fun.py b/git/index/fun.py index 95dc3d56..d9fe4108 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -72,7 +72,7 @@ def hook_path(name: str, git_dir: PathLike) -> str: return osp.join(git_dir, 'hooks', name) -def run_commit_hook(name: str, index: IndexFile, *args: str) -> None: +def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None: """Run the commit hook of the given name. Silently ignores hooks that do not exist. :param name: name of hook, like 'pre-commit' :param index: IndexFile instance -- cgit v1.2.1