diff options
Diffstat (limited to 'git/index/base.py')
-rw-r--r-- | git/index/base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/git/index/base.py b/git/index/base.py index debd710f..f4ffba7b 100644 --- a/git/index/base.py +++ b/git/index/base.py @@ -75,6 +75,7 @@ if TYPE_CHECKING: from subprocess import Popen from git.repo import Repo from git.refs.reference import Reference + from git.util import Actor StageType = int @@ -967,8 +968,8 @@ class IndexFile(LazyMixin, diff.Diffable, Serializable): return out - def commit(self, message: str, parent_commits=None, head: bool = True, author: str = None, - committer: str = None, author_date: str = None, commit_date: str = None, + def commit(self, message: str, parent_commits=None, head: bool = True, author: Union[None, 'Actor'] = None, + committer: Union[None, 'Actor'] = None, author_date: str = None, commit_date: str = None, skip_hooks: bool = False) -> Commit: """Commit the current default index file, creating a commit object. For more information on the arguments, see tree.commit. |