diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 08:17:32 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2022-05-18 08:17:32 +0800 |
commit | 38e9a18b976b2b7e3b3cd0fcd5b037573823d7c2 (patch) | |
tree | 8ac0bc1540650cf3befff11735e1421de372fa92 /git/db.py | |
parent | b30720ee4d9762a03eae4fa7cfa4b0190d81784d (diff) | |
parent | 43c00af7e542911cce638cfab49c6a6dc9349e55 (diff) | |
download | gitpython-38e9a18b976b2b7e3b3cd0fcd5b037573823d7c2.tar.gz |
Merge branch 'black-fmt'
Diffstat (limited to 'git/db.py')
-rw-r--r-- | git/db.py | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -1,9 +1,6 @@ """Module with our own gitdb implementation - it uses the git command""" from git.util import bin_to_hex, hex_to_bin -from gitdb.base import ( - OInfo, - OStream -) +from gitdb.base import OInfo, OStream from gitdb.db import GitDB # @UnusedImport from gitdb.db import LooseObjectDB @@ -21,7 +18,7 @@ if TYPE_CHECKING: # -------------------------------------------------------- -__all__ = ('GitCmdObjectDB', 'GitDB') +__all__ = ("GitCmdObjectDB", "GitDB") class GitCmdObjectDB(LooseObjectDB): @@ -34,7 +31,7 @@ class GitCmdObjectDB(LooseObjectDB): have packs and the other implementations """ - def __init__(self, root_path: PathLike, git: 'Git') -> None: + def __init__(self, root_path: PathLike, git: "Git") -> None: """Initialize this instance with the root and a git command""" super(GitCmdObjectDB, self).__init__(root_path) self._git = git @@ -63,4 +60,4 @@ class GitCmdObjectDB(LooseObjectDB): raise BadObject(partial_hexsha) from e # END handle exceptions - #} END interface + # } END interface |