Add __all__ and imports in git.objects.submodule · gitpython-developers/GitPython@de540b7 · GitHub
Skip to content

Commit de540b7

Browse files
committed
Add __all__ and imports in git.objects.submodule
This is the top-level of the git.objects.submodule subpackage, for its own Python submodules. This appears only not to have been done before because of a cyclic import problem involving imports that are no longer present. Doing it improves consistency, since all the other subpackages under the top-level git package already do this. The modattrs.py script reveals the four new attributes of git.objects.submodule for the four classes obtained by the new imports, as expected. (The explicit module imports do not change the attribues because they are the same attributes as come into existence due to those Python submodules being imported anywhere in any style.)
1 parent 3786307 commit de540b7

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

git/objects/__init__.py

Lines changed: 1 addition & 2 deletions

git/objects/submodule/__init__.py

Lines changed: 13 additions & 2 deletions

0 commit comments

Comments
 (0)