From ce8cc4a6123a3ea11fc4e35416d93a8bd68cfd65 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Thu, 20 May 2021 21:06:09 +0100 Subject: Add types to commit.py spit parents into list and tuple types --- git/objects/commit.py | 1 + 1 file changed, 1 insertion(+) (limited to 'git/objects/commit.py') diff --git a/git/objects/commit.py b/git/objects/commit.py index 6d3f0bac..b95f4c65 100644 --- a/git/objects/commit.py +++ b/git/objects/commit.py @@ -129,6 +129,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable): self.message = message if parents is not None: self.parents = parents + self.parents_list = list(parents) if encoding is not None: self.encoding = encoding if gpgsig is not None: -- cgit v1.2.1