Skip to content

Commit 521332a

Browse files
Fix F403 wildcart import used in astroid/__init__.py
And apply flake8 on setup.py and astroid/__init__.py
1 parent 30711bc commit 521332a

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repos:
4646
hooks:
4747
- id: flake8
4848
additional_dependencies: [flake8-bugbear]
49-
exclude: tests/testdata|doc/conf.py|astroid/__init__.py|setup.py
49+
exclude: tests/testdata|doc/conf.py
5050
- repo: local
5151
hooks:
5252
- id: pylint

astroid/__init__.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,36 @@
5858
from astroid.brain.helpers import register_module_extender
5959
from astroid.builder import extract_node, parse
6060
from astroid.const import Context, Del, Load, Store
61-
from astroid.exceptions import *
61+
from astroid.exceptions import (
62+
AstroidBuildingError,
63+
AstroidBuildingException,
64+
AstroidError,
65+
AstroidImportError,
66+
AstroidIndexError,
67+
AstroidSyntaxError,
68+
AstroidTypeError,
69+
AstroidValueError,
70+
AttributeInferenceError,
71+
BinaryOperationError,
72+
DuplicateBasesError,
73+
InconsistentMroError,
74+
InferenceError,
75+
InferenceOverwriteError,
76+
MroError,
77+
NameInferenceError,
78+
NoDefault,
79+
NotFoundError,
80+
OperationError,
81+
ParentMissingError,
82+
ResolveError,
83+
StatementMissing,
84+
SuperArgumentTypeError,
85+
SuperError,
86+
TooManyLevelsError,
87+
UnaryOperationError,
88+
UnresolvableName,
89+
UseInferenceDefault,
90+
)
6291
from astroid.inference_tip import _inference_tip_cached, inference_tip
6392
from astroid.objects import ExceptionInstance
6493

astroid/exceptions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@
4242
"NoDefault",
4343
"NotFoundError",
4444
"OperationError",
45+
"ParentMissingError",
4546
"ResolveError",
47+
"StatementMissing",
4648
"SuperArgumentTypeError",
4749
"SuperError",
4850
"TooManyLevelsError",

0 commit comments

Comments
 (0)