Skip to content

Commit 1a12842

Browse files
Remove deprecated node_classes, scoped_nodes, and mixins modules (#2300)
* Remove deprecated `node_classes` and `scoped_nodes` modules * Remove export of import_module Unused since f96e18b. * Remove `astroid.mixins`
1 parent 9b39044 commit 1a12842

File tree

5 files changed

+17
-172
lines changed

5 files changed

+17
-172
lines changed

ChangeLog

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ What's New in astroid 3.0.0?
66
=============================
77
Release date: TBA
88

9-
* Return all existing arguments when calling ``Arguments.arguments()``. This also means ``find_argname`` will now
10-
use the whole list of arguments for its search.
11-
12-
Closes #2213
13-
149
* Add support for Python 3.12, including PEP 695 type parameter syntax.
1510

1611
Closes #2201
@@ -19,6 +14,22 @@ Release date: TBA
1914

2015
Refs #2137
2116

17+
* Following a deprecation period starting in astroid 2.7.0, the ``astroid.node_classes``
18+
and ``astroid.scoped_nodes`` modules have been removed in favor of ``astroid.nodes.node_classes``
19+
and ``astroid.nodes.scoped_nodes``.
20+
21+
Closes #1072
22+
23+
* Following a deprecation period starting in astroid 2.12.0, the ``astroid.mixins`` module
24+
has been removed in favor of ``astroid.nodes._base_nodes`` (private).
25+
26+
Refs #1633
27+
28+
* Return all existing arguments when calling ``Arguments.arguments()``. This also means ``find_argname`` will now
29+
use the whole list of arguments for its search.
30+
31+
Closes #2213
32+
2233
* Exclude class attributes from the ``__members__`` container of an ``Enum`` class when they are
2334
``nodes.AnnAssign`` nodes with no assigned value.
2435

astroid/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,9 @@
3232

3333
import functools
3434
import tokenize
35-
from importlib import import_module
3635

3736
# isort: off
38-
# We have an isort: off on '__version__' because of a circular import in nodes.
37+
# We have an isort: off on 'astroid.nodes' because of a circular import.
3938
from astroid.nodes import node_classes, scoped_nodes
4039

4140
# isort: on

astroid/mixins.py

Lines changed: 0 additions & 31 deletions
This file was deleted.

astroid/node_classes.py

Lines changed: 0 additions & 99 deletions
This file was deleted.

astroid/scoped_nodes.py

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)