diff options
Diffstat (limited to 'git/objects/__init__.py')
| -rw-r--r-- | git/objects/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/git/objects/__init__.py b/git/objects/__init__.py index 1d0bb7a5..5910ac58 100644 --- a/git/objects/__init__.py +++ b/git/objects/__init__.py @@ -12,13 +12,13 @@ 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))] |
