summaryrefslogtreecommitdiff
path: root/git/objects/blob.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-05-20 14:34:57 +0100
committerYobmod <yobmod@gmail.com>2021-05-20 14:34:57 +0100
commitc5c69071fd6c730d29c31759caddb0ba8b8e92c3 (patch)
tree848c2ae490e0a9addcd41b3b3afe7db0b8974904 /git/objects/blob.py
parent82b03c2eb07f08dd5d6174a04e4288d41f49920f (diff)
downloadgitpython-c5c69071fd6c730d29c31759caddb0ba8b8e92c3.tar.gz
Mypy fixes
Diffstat (limited to 'git/objects/blob.py')
-rw-r--r--git/objects/blob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/blob.py b/git/objects/blob.py
index a6a5b224..013eaf8c 100644
--- a/git/objects/blob.py
+++ b/git/objects/blob.py
@@ -30,5 +30,5 @@ class Blob(base.IndexObject):
:note: Defaults to 'text/plain' in case the actual file type is unknown. """
guesses = None
if self.path:
- guesses = guess_type(self.path)
+ guesses = guess_type(str(self.path))
return guesses and guesses[0] or self.DEFAULT_MIME_TYPE