summaryrefslogtreecommitdiff
path: root/git/objects/fun.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2021-08-03 17:06:31 +0100
committerGitHub <noreply@github.com>2021-08-03 17:06:31 +0100
commit05c77cf06e82f7932fb9775fad74251ad6c8aa4f (patch)
tree2491f8abc76300493fc80251fa21a967db48c375 /git/objects/fun.py
parent335e59dc2cece491a5c5d42396ce70d4ed0715b5 (diff)
parent0b89bfe855f0faadf359efcfad8ae752d98c6032 (diff)
downloadgitpython-05c77cf06e82f7932fb9775fad74251ad6c8aa4f.tar.gz
Merge branch 'main' into patch-1
Diffstat (limited to 'git/objects/fun.py')
-rw-r--r--git/objects/fun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/fun.py b/git/objects/fun.py
index d6cdafe1..19b4e525 100644
--- a/git/objects/fun.py
+++ b/git/objects/fun.py
@@ -51,7 +51,7 @@ def tree_to_stream(entries: Sequence[EntryTup], write: Callable[['ReadableBuffer
if isinstance(name, str):
name_bytes = name.encode(defenc)
else:
- name_bytes = name
+ name_bytes = name # type: ignore[unreachable] # check runtime types - is always str?
write(b''.join((mode_str, b' ', name_bytes, b'\0', binsha)))
# END for each item