From 53d94b8091b36847bb9e495c76bb5a3ec2a2fdb5 Mon Sep 17 00:00:00 2001 From: Trym Bremnes Date: Thu, 30 Sep 2021 08:54:43 +0200 Subject: Replace wildcard imports with concrete imports All `from import *` has now been replaced by `from import X, Y, ...`. Contributes to #1349 --- 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 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] -- cgit v1.2.1