From fd59cc746c2597bc4fad49d03e79bcbe04de78c4 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Tue, 15 Jun 2021 18:19:30 +0200 Subject: Remove wildcard import for astroid.exceptions in __init__.py --- astroid/__init__.py | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'astroid/__init__.py') diff --git a/astroid/__init__.py b/astroid/__init__.py index 087282d0..90c8dfd1 100644 --- a/astroid/__init__.py +++ b/astroid/__init__.py @@ -59,7 +59,34 @@ del _Context # pylint: disable=wrong-import-order,wrong-import-position,redefined-builtin # make all exception classes accessible from astroid package -from astroid.exceptions import * +from astroid.exceptions import ( + AstroidBuildingError, + AstroidBuildingException, + AstroidError, + AstroidImportError, + AstroidIndexError, + AstroidSyntaxError, + AstroidTypeError, + AstroidValueError, + AttributeInferenceError, + BinaryOperationError, + DuplicateBasesError, + InconsistentMroError, + InferenceError, + InferenceOverwriteError, + MroError, + NameInferenceError, + NoDefault, + NotFoundError, + OperationError, + ResolveError, + SuperArgumentTypeError, + SuperError, + TooManyLevelsError, + UnaryOperationError, + UnresolvableName, + UseInferenceDefault, +) # make all node classes accessible from astroid package from astroid.nodes import * -- cgit v1.2.1