summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-08 11:30:16 +0100
committerYobmod <yobmod@gmail.com>2021-07-08 11:30:16 +0100
commit2e2fe186d09272c3cb6c96467fff362deb90994f (patch)
treeb2ffef306dd111d633e1b3fa66464eda09c5f903 /git/objects/commit.py
parent873ebe61431c50bb39afd5cafff498b3e1879342 (diff)
downloadgitpython-2e2fe186d09272c3cb6c96467fff362deb90994f.tar.gz
Increase mypy strictness (no_implicit_optional & warn_redundant_casts) and fix errors
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 81978ae8..65a87591 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -80,7 +80,7 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable):
"message", "parents", "encoding", "gpgsig")
_id_attribute_ = "hexsha"
- def __init__(self, repo: 'Repo', binsha: bytes, tree: 'Tree' = None,
+ def __init__(self, repo: 'Repo', binsha: bytes, tree: Union['Tree', None] = None,
author: Union[Actor, None] = None,
authored_date: Union[int, None] = None,
author_tz_offset: Union[None, float] = None,