summaryrefslogtreecommitdiff
path: root/git/objects/blob.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-05-18 08:17:32 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-05-18 08:17:32 +0800
commit38e9a18b976b2b7e3b3cd0fcd5b037573823d7c2 (patch)
tree8ac0bc1540650cf3befff11735e1421de372fa92 /git/objects/blob.py
parentb30720ee4d9762a03eae4fa7cfa4b0190d81784d (diff)
parent43c00af7e542911cce638cfab49c6a6dc9349e55 (diff)
downloadgitpython-38e9a18b976b2b7e3b3cd0fcd5b037573823d7c2.tar.gz
Merge branch 'black-fmt'
Diffstat (limited to 'git/objects/blob.py')
-rw-r--r--git/objects/blob.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/git/objects/blob.py b/git/objects/blob.py
index 99b5c636..1881f210 100644
--- a/git/objects/blob.py
+++ b/git/objects/blob.py
@@ -8,14 +8,15 @@ from . import base
from git.types import Literal
-__all__ = ('Blob', )
+__all__ = ("Blob",)
class Blob(base.IndexObject):
"""A Blob encapsulates a git blob object"""
+
DEFAULT_MIME_TYPE = "text/plain"
- type: Literal['blob'] = "blob"
+ type: Literal["blob"] = "blob"
# valid blob modes
executable_mode = 0o100755
@@ -28,7 +29,7 @@ class Blob(base.IndexObject):
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. """
+ :note: Defaults to 'text/plain' in case the actual file type is unknown."""
guesses = None
if self.path:
guesses = guess_type(str(self.path))