From 03efcc3f86b88bab3080fe69119ee4c69e4afd0a Mon Sep 17 00:00:00 2001 From: tristanlatr <19967168+tristanlatr@users.noreply.github.com> Date: Fri, 14 Jan 2022 03:09:22 -0500 Subject: 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> --- astroid/__init__.py | 7 +++++-- 1 file 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. -- cgit v1.2.1