summaryrefslogtreecommitdiff
path: root/git/objects/blob.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/objects/blob.py')
-rw-r--r--git/objects/blob.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/git/objects/blob.py b/git/objects/blob.py
index 013eaf8c..017178f0 100644
--- a/git/objects/blob.py
+++ b/git/objects/blob.py
@@ -4,7 +4,6 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
from mimetypes import guess_type
-from typing import Tuple, Union
from . import base
__all__ = ('Blob', )
@@ -24,7 +23,7 @@ class Blob(base.IndexObject):
__slots__ = ()
@property
- def mime_type(self) -> Union[None, str, Tuple[Union[None, str], Union[None, str]]]:
+ def mime_type(self) -> str:
"""
:return: String describing the mime type of this file (based on the filename)
:note: Defaults to 'text/plain' in case the actual file type is unknown. """