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.
- Developed at devel:languages:python
- Sources inherited from project openSUSE:Factory
-
9
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:Rebuild/python-astroid && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
astroid-3.2.2-gh.tar.gz | 0000465306 454 KB | |
python-astroid.changes | 0000072168 70.5 KB | |
python-astroid.spec | 0000002560 2.5 KB |
Revision 51 (latest revision is 55)
Ana Guerrero (anag+factory)
accepted
request 1185391
from
Daniel Garcia (dgarcia)
(revision 51)
- update to 3.2.2: * Improve inference for generic classes using the PEP 695 syntax (Python 3.12). * Fix ``RecursionError`` in ``infer_call_result()`` for certain ``__call__`` methods. * Add ``AstroidManager.prefer_stubs`` attribute to control the astroid 3.2.0 feature that prefers stubs. * ``igetattr()`` returns the last same-named function in a class (instead of the first). This avoids false positives in pylint with ``@overload``. * Adds ``module_denylist`` to ``AstroidManager`` for modules to be skipped during AST generation. Modules in this list will cause an ``AstroidImportError`` to be raised when an AST for them is requested. * Make ``astroid.interpreter._import.util.is_namespace`` only consider modules using a loader set to ``NamespaceLoader`` or ``None`` as namespaces.
Comments 0