diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-08 23:49:01 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-08 23:49:01 +0100 |
commit | 4f13b4e23526616f307370dc9a869b067e90b276 (patch) | |
tree | e389bba12640d5f1281a64167b6fc7c6ed9a198e /git/objects/tree.py | |
parent | c27d2b078b515a8321b3f7f7abdcea363d8049df (diff) | |
download | gitpython-4f13b4e23526616f307370dc9a869b067e90b276.tar.gz |
fix base,ours,theirs typing
Diffstat (limited to 'git/objects/tree.py')
-rw-r--r-- | git/objects/tree.py | 2 |
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]) |