Skip to content

Commit 473fc3a

Browse files
committed
forward reference for IndexFile
1 parent 025fe17 commit 473fc3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: git/index/fun.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def hook_path(name: str, git_dir: PathLike) -> str:
7272
return osp.join(git_dir, 'hooks', name)
7373

7474

75-
def run_commit_hook(name: str, index: IndexFile, *args: str) -> None:
75+
def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None:
7676
"""Run the commit hook of the given name. Silently ignores hooks that do not exist.
7777
:param name: name of hook, like 'pre-commit'
7878
:param index: IndexFile instance

0 commit comments

Comments
 (0)