From 8f51abd30647c9dfe857621ab97f52d3e5f2fbd9 Mon Sep 17 00:00:00 2001 From: SergeantMenacingGarlic <87030047+SergeantMenacingGarlic@users.noreply.github.com> Date: Mon, 10 Oct 2022 16:13:36 -0400 Subject: Add datetime.datetime type to commit_date and author_date --- git/objects/commit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git/objects/commit.py') diff --git a/git/objects/commit.py b/git/objects/commit.py index cf7d9aaa..82d2387b 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -435,8 +435,8 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable): head: bool = False, author: Union[None, Actor] = None, committer: Union[None, Actor] = None, - author_date: Union[None, str] = None, - commit_date: Union[None, str] = None, + author_date: Union[None, str, datetime.datetime] = None, + commit_date: Union[None, str, datetime.datetime] = None, ) -> "Commit": """Commit the given tree, creating a commit object. -- cgit v1.2.1