Skip to content

Commit ce8cc4a

Browse files
committed
Add types to commit.py spit parents into list and tuple types
1 parent 6503ef7 commit ce8cc4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git/objects/commit.py

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ def __init__(self, repo, binsha, tree=None, author=None, authored_date=None, aut
129129
self.message = message
130130
if parents is not None:
131131
self.parents = parents
132+
self.parents_list = list(parents)
132133
if encoding is not None:
133134
self.encoding = encoding
134135
if gpgsig is not None:

0 commit comments

Comments
 (0)