Skip to content

Commit 03efcc3

Browse files
Correct documentation, nodes classes do not exend python's ones (#1343)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 5405b6c commit 03efcc3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

astroid/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@
2222
pylint... Well, actually the development of this library is essentially
2323
governed by pylint's needs.
2424
25-
It extends class defined in the python's _ast module with some
26-
additional methods and attributes. Instance attributes are added by a
25+
It mimics the class defined in the python's _ast module with some
26+
additional methods and attributes. New nodes instances are not fully
27+
compatible with python's _ast.
28+
29+
Instance attributes are added by a
2730
builder object, which can either generate extended ast (let's call
2831
them astroid ;) by visiting an existent ast tree or by inspecting living
2932
object. Methods are added by monkey patching ast classes.

0 commit comments

Comments
 (0)