From ce4afe46d211cdfb611b8e8109bb0dc160a12540 Mon Sep 17 00:00:00 2001 From: Trym Bremnes Date: Sat, 2 Oct 2021 16:42:35 +0200 Subject: Revert "Replace wildcard imports with concrete imports" This reverts commit 53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5. The reason for the revert is that the commit in question introduced a regression where certain modules, functions and classes that were exposed before were no longer exposed. See https://github.com/gitpython-developers/GitPython/pull/1352#issuecomment-932757204 for additional information. --- git/objects/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'git/objects') diff --git a/git/objects/__init__.py b/git/objects/__init__.py index c4a49227..1d0bb7a5 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 Object, IndexObject -from .blob import Blob -from .commit import Commit +from .base import * +from .blob import * +from .commit import * from .submodule import util as smutil -from .submodule.base import Submodule, UpdateProgress -from .submodule.root import RootModule, RootUpdateProgress -from .tag import TagObject -from .tree import Tree +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] -- cgit v1.2.1