-
-
Notifications
You must be signed in to change notification settings - Fork 303
Deprecate nodes import from astroid #2837
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
from astroid.util import Uninferable | ||
|
||
__all__ = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added __all__
to not expose the _DEPRECATED_*
classes here.
df34d94
to
921e924
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2837 +/- ##
=======================================
Coverage 93.36% 93.37%
=======================================
Files 92 92
Lines 11139 11148 +9
=======================================
+ Hits 10400 10409 +9
Misses 739 739
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks pretty good, clever trick.
Description
Followup to #2833
Deprecate the import of node classes from toplevel
astroid
.Import them from
astroid.nodes
instead.