python-astroid
The aim of this module is to provide a common base representation of 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 used to be called logilab-astng.
It provides a compatible representation which comes from the _ast module. It rebuilds the tree generated by the builtin _ast module by recursively walking down the AST and building an extended ast. The new node classes have additional methods and attributes for different usages. They include some support for static inference and local name scopes. Furthermore, astroid builds partial trees by inspecting living objects.
- Links to devel:languages:python / python-astroid
- Has a link diff
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:dgarcia:branches:devel:languages:python/python-astroid && cd $_
- Create Badge
Refresh
Refresh
Source Files (show merged sources derived from linked package)
Filename | Size | Changed |
---|---|---|
_link | 0000000130 130 Bytes | |
astroid-3.0.0-gh.tar.gz | 0000461185 450 KB | |
python-astroid.changes | 0000068829 67.2 KB | |
python-astroid.spec | 0000002953 2.88 KB |
Latest Revision
Daniel Garcia (dgarcia)
committed
(revision 2)
- Update to 3.0.0: * Add support for Python 3.12, including PEP 695 type parameter syntax. * Remove support for Python 3.7. * A lot of more fixes and improvements, full list of changes for version 3.0.0 can be found here: https://github.com/pylint-dev/astroid/releases/tag/v3.0.0 - 2.15.8: * Fix a regression in 2.15.7 for unsubscriptable-object. - 2.15.7: * Fix a crash when inferring a typing.TypeVar call. * Infer user-defined enum classes by checking if the class is a subtype of enum.Enum. * Fix inference of functions with @functools.lru_cache decorators without parentheses. * Make sys.argv uninferable because it never is. (It's impossible to infer the value it will have outside of static analysis where it's our own value.)
Comments 0