diff options
author | Yobmod <yobmod@gmail.com> | 2021-05-18 14:39:47 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-05-18 14:39:47 +0100 |
commit | 01c8d59e426ae097e486a0bffa5b21d2118a48c3 (patch) | |
tree | f74e7e7b61972c4469f46a5037b65604790d534f /git/objects/blob.py | |
parent | ecb12c27b6dc56387594df26a205161a1e75c1b9 (diff) | |
download | gitpython-01c8d59e426ae097e486a0bffa5b21d2118a48c3.tar.gz |
Add initial types to objects.util.py
Diffstat (limited to 'git/objects/blob.py')
-rw-r--r-- | git/objects/blob.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/blob.py b/git/objects/blob.py index b027adab..a6a5b224 100644 --- a/git/objects/blob.py +++ b/git/objects/blob.py @@ -24,7 +24,7 @@ class Blob(base.IndexObject): __slots__ = () @property - def mime_type(self) -> Union[None, Tuple[Union[None, str], Union[None, str]]]: + def mime_type(self) -> Union[None, str, Tuple[Union[None, str], Union[None, 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. """ |