summaryrefslogtreecommitdiff
path: root/git/db.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-03-02 21:46:17 +0000
committeryobmod <yobmod@gmail.com>2021-03-02 21:46:17 +0000
commit2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d (patch)
tree93a63a1bee90204f68cf41dc08484ad4adab7ad4 /git/db.py
parent71e28b8e2ac1b8bc8990454721740b2073829110 (diff)
downloadgitpython-2fd9f6ee5c8b4ae4e01a40dc398e2768d838210d.tar.gz
add types to git.compat and git.diff
Diffstat (limited to 'git/db.py')
-rw-r--r--git/db.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/git/db.py b/git/db.py
index e2d3910d..ef2b0b2e 100644
--- a/git/db.py
+++ b/git/db.py
@@ -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: