astroid icon indicating copy to clipboard operation
astroid copied to clipboard

Remove deprecated ``astroid.node_classes`` and ``astroid.scoped_nodes``

Open Pierre-Sassoulas opened this issue 3 years ago • 2 comments

Those two files have been deprecated in 2.7.0 and need to be removed in 3.0.0.

Pierre-Sassoulas avatar Jun 23 '21 19:06 Pierre-Sassoulas

astroid seems to be triggering its own deprecation warnings, which is quite annoying for projects trying to maintain a warning-free runtime

https://github.com/PyCQA/astroid/blob/4ffdf1108a6084b85e282b5835427c1d747bb22c/astroid/init.py#L54-L55

  File "/.../site-packages/astroid/__init__.py", line 54, in <module>
    from astroid import node_classes  # Deprecated, to remove later
  File "/.../site-packages/astroid/node_classes.py", line 90, in <module>
    warnings.warn(
DeprecationWarning: The 'astroid.node_classes' module is deprecated and will be replaced by 'astroid.nodes' in astroid 3.0.0

belm0 avatar Sep 23 '21 02:09 belm0

@belm0 thank you for the coment, I opened #1190 to fix that, should be available in 2.8.1.

Pierre-Sassoulas avatar Sep 25 '21 17:09 Pierre-Sassoulas