summaryrefslogtreecommitdiff
path: root/git/objects/__init__.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/__init__.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/__init__.py')
-rw-r--r--git/objects/__init__.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/git/objects/__init__.py b/git/objects/__init__.py
index 1d0bb7a5..d2e1e53a 100644
--- a/git/objects/__init__.py
+++ b/git/objects/__init__.py
@@ -12,13 +12,17 @@ from .submodule.base import *
from .submodule.root import *
from .tag import *
from .tree import *
+
# Fix import dependency - add IndexObject to the util module, so that it can be
# imported by the submodule.base
smutil.IndexObject = IndexObject # type: ignore[attr-defined]
smutil.Object = Object # type: ignore[attr-defined]
-del(smutil)
+del smutil
# must come after submodule was made available
-__all__ = [name for name, obj in locals().items()
- if not (name.startswith('_') or inspect.ismodule(obj))]
+__all__ = [
+ name
+ for name, obj in locals().items()
+ if not (name.startswith("_") or inspect.ismodule(obj))
+]