diff options
author | Yobmod <yobmod@gmail.com> | 2021-06-24 05:52:48 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-06-24 05:52:48 +0100 |
commit | 42e4f5e26b812385df65f8f32081035e2fb2a121 (patch) | |
tree | b391428ad23747b8cb8ee34908f0a4e4711c45a5 /git/repo/base.py | |
parent | 6500844a925f0df90a0926dbdfc7b5ebb4a97bc9 (diff) | |
download | gitpython-42e4f5e26b812385df65f8f32081035e2fb2a121.tar.gz |
Add types to tree.Tree
Diffstat (limited to 'git/repo/base.py')
-rw-r--r-- | git/repo/base.py | 3 |
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 |