summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 6cc56031..5abd4961 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -530,7 +530,7 @@ class Repo(object):
:note: Takes all arguments known to iter_commits method"""
return (c.tree for c in self.iter_commits(*args, **kwargs))
- def tree(self, rev: Union['Commit', 'Tree', None] = None) -> 'Tree':
+ def tree(self, rev: Union['Commit', 'Tree', str, None] = None) -> 'Tree':
"""The Tree object for the given treeish revision
Examples::