summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortristanlatr <19967168+tristanlatr@users.noreply.github.com>2022-01-14 03:09:22 -0500
committerGitHub <noreply@github.com>2022-01-14 09:09:22 +0100
commit03efcc3f86b88bab3080fe69119ee4c69e4afd0a (patch)
tree2b3c110da0d841054b75d3dccce801a3414357e6
parent5405b6cc28624d38c546f11b6b78c913ee647d2b (diff)
downloadastroid-git-03efcc3f86b88bab3080fe69119ee4c69e4afd0a.tar.gz
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>
-rw-r--r--astroid/__init__.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/astroid/__init__.py b/astroid/__init__.py
index a16a2815..b2f2c817 100644
--- a/astroid/__init__.py
+++ b/astroid/__init__.py
@@ -22,8 +22,11 @@ python source code for projects such as pychecker, pyreverse,
pylint... Well, actually the development of this library is essentially
governed by pylint's needs.
-It extends class defined in the python's _ast module with some
-additional methods and attributes. Instance attributes are added by a
+It mimics the class defined in the python's _ast module with some
+additional methods and attributes. New nodes instances are not fully
+compatible with python's _ast.
+
+Instance attributes are added by a
builder object, which can either generate extended ast (let's call
them astroid ;) by visiting an existent ast tree or by inspecting living
object. Methods are added by monkey patching ast classes.