summaryrefslogtreecommitdiff
path: root/git/objects/__init__.py
diff options
context:
space:
mode:
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))
+]