summaryrefslogtreecommitdiff
path: root/git/objects/tree.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-08 23:49:01 +0100
committerYobmod <yobmod@gmail.com>2021-07-08 23:49:01 +0100
commit4f13b4e23526616f307370dc9a869b067e90b276 (patch)
treee389bba12640d5f1281a64167b6fc7c6ed9a198e /git/objects/tree.py
parentc27d2b078b515a8321b3f7f7abdcea363d8049df (diff)
downloadgitpython-4f13b4e23526616f307370dc9a869b067e90b276.tar.gz
fix base,ours,theirs typing
Diffstat (limited to 'git/objects/tree.py')
-rw-r--r--git/objects/tree.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/tree.py b/git/objects/tree.py
index 528cf5ca..d3681e23 100644
--- a/git/objects/tree.py
+++ b/git/objects/tree.py
@@ -44,7 +44,7 @@ __all__ = ("TreeModifier", "Tree")
def git_cmp(t1: TreeCacheTup, t2: TreeCacheTup) -> int:
a, b = t1[2], t2[2]
- assert isinstance(a, str) and isinstance(b, str) # Need as mypy 9.0 cannot unpack TypeVar properly
+ # assert isinstance(a, str) and isinstance(b, str)
len_a, len_b = len(a), len(b)
min_len = min(len_a, len_b)
min_cmp = cmp(a[:min_len], b[:min_len])