diff options
author | yobmod <yobmod@gmail.com> | 2021-03-02 21:46:17 +0000 |
---|---|---|
committer | yobmod <yobmod@gmail.com> | 2021-03-02 21:46:17 +0000 |
commit | 2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d (patch) | |
tree | 93a63a1bee90204f68cf41dc08484ad4adab7ad4 /git/db.py | |
parent | 71e28b8e2ac1b8bc8990454721740b2073829110 (diff) | |
download | gitpython-2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d.tar.gz |
add types to git.compat and git.diff
Diffstat (limited to 'git/db.py')
-rw-r--r-- | git/db.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,5 @@ """Module with our own gitdb implementation - it uses the git command""" +from typing import AnyStr from git.util import bin_to_hex, hex_to_bin from gitdb.base import ( OInfo, @@ -13,7 +14,7 @@ from .exc import GitCommandError # typing------------------------------------------------- from .cmd import Git -from .types import PathLike, TBD +from .types import PathLike # -------------------------------------------------------- @@ -48,7 +49,7 @@ class GitCmdObjectDB(LooseObjectDB): # { Interface - def partial_to_complete_sha_hex(self, partial_hexsha: str) -> bytes: + def partial_to_complete_sha_hex(self, partial_hexsha: AnyStr) -> bytes: """:return: Full binary 20 byte sha from the given partial hexsha :raise AmbiguousObjectName: :raise BadObject: |