summaryrefslogtreecommitdiff
path: root/git/objects/blob.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-05-18 07:43:53 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-05-18 07:43:53 +0800
commit21ec529987d10e0010badd37f8da3274167d436f (patch)
treea3394cfe902ce7edd07c89420c21c13274a2d295 /git/objects/blob.py
parentb30720ee4d9762a03eae4fa7cfa4b0190d81784d (diff)
downloadgitpython-21ec529987d10e0010badd37f8da3274167d436f.tar.gz
Run everything through 'black'
That way people who use it won't be deterred, while it unifies style everywhere.
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))