summaryrefslogtreecommitdiff
path: root/git/repo/base.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-06-24 05:52:48 +0100
committerYobmod <yobmod@gmail.com>2021-06-24 05:52:48 +0100
commit42e4f5e26b812385df65f8f32081035e2fb2a121 (patch)
treeb391428ad23747b8cb8ee34908f0a4e4711c45a5 /git/repo/base.py
parent6500844a925f0df90a0926dbdfc7b5ebb4a97bc9 (diff)
downloadgitpython-42e4f5e26b812385df65f8f32081035e2fb2a121.tar.gz
Add types to tree.Tree
Diffstat (limited to 'git/repo/base.py')
-rw-r--r--git/repo/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/repo/base.py b/git/repo/base.py
index 5abd4961..77947731 100644
--- a/git/repo/base.py
+++ b/git/repo/base.py
@@ -7,6 +7,7 @@ import logging
import os
import re
import warnings
+from gitdb.db.loose import LooseObjectDB
from gitdb.exc import BadObject
@@ -100,7 +101,7 @@ class Repo(object):
# Subclasses may easily bring in their own custom types by placing a constructor or type here
GitCommandWrapperType = Git
- def __init__(self, path: Optional[PathLike] = None, odbt: Type[GitCmdObjectDB] = GitCmdObjectDB,
+ def __init__(self, path: Optional[PathLike] = None, odbt: Type[LooseObjectDB] = GitCmdObjectDB,
search_parent_directories: bool = False, expand_vars: bool = True) -> None:
"""Create a new Repo instance