From 11837f61aa4b5c286c6ee9870e23a7ee342858c5 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Tue, 18 May 2021 13:11:25 +0100 Subject: Add types to objects.base.py --- 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 f40928c3..96d9b475 100644 --- a/git/index/fun.py +++ b/git/index/fun.py @@ -108,7 +108,7 @@ def run_commit_hook(name: str, index: 'IndexFile', *args: str) -> None: # end handle return code -def stat_mode_to_index_mode(mode): +def stat_mode_to_index_mode(mode: int) -> int: """Convert the given mode from a stat call to the corresponding index mode and return it""" if S_ISLNK(mode): # symlinks -- cgit v1.2.1