summaryrefslogtreecommitdiff
path: root/git/objects
diff options
context:
space:
mode:
authorTrym Bremnes <trym.bremnes@gmail.com>2021-09-30 08:54:43 +0200
committerSebastian Thiel <sebastian.thiel@icloud.com>2021-10-01 22:27:00 +0800
commit53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5 (patch)
treecab98dddccf406fde8ba89727e4f847f675fc18c /git/objects
parent5e73cabd041f45337b270d5e78674d88448929e6 (diff)
downloadgitpython-53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5.tar.gz
Replace wildcard imports with concrete imports
All `from <module> import *` has now been replaced by `from <module> import X, Y, ...`. Contributes to #1349
Diffstat (limited to 'git/objects')
-rw-r--r--git/objects/__init__.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/git/objects/__init__.py b/git/objects/__init__.py
index 1d0bb7a5..c4a49227 100644
--- a/git/objects/__init__.py
+++ b/git/objects/__init__.py
@@ -4,14 +4,14 @@ Import all submodules main classes into the package space
# flake8: noqa
import inspect
-from .base import *
-from .blob import *
-from .commit import *
+from .base import Object, IndexObject
+from .blob import Blob
+from .commit import Commit
from .submodule import util as smutil
-from .submodule.base import *
-from .submodule.root import *
-from .tag import *
-from .tree import *
+from .submodule.base import Submodule, UpdateProgress
+from .submodule.root import RootModule, RootUpdateProgress
+from .tag import TagObject
+from .tree import Tree
# 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]