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.
- Devel package for openSUSE:Factory
-
12
derived packages
- Links to openSUSE:Factory / python-astroid
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout devel:languages:python/python-astroid && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
_link | 0000000124 124 Bytes | |
astroid-2.8.4-gh.tar.gz | 0000391667 382 KB | |
python-astroid.changes | 0000058396 57 KB | |
python-astroid.spec | 0000002828 2.76 KB |
Revision 65 (latest revision is 106)
- Update to 2.8.4 * Fix the ``scope()`` and ``frame()`` methods of ``NamedExpr`` nodes. When these nodes occur in ``Arguments``, ``Keyword`` or ``Comprehension`` nodes these methods now correctly point to the outer-scope of the ``FunctionDef``, ``ClassDef``, or ``Comprehension``. * Fix the ``set_local`` function for ``NamedExpr`` nodes. When these nodes occur in ``Arguments``, ``Keyword``, or ``Comprehension`` nodes these nodes are now correctly added to the locals of the ``FunctionDef``, ``ClassDef``, or ``Comprehension``. - Release 2.8.3? * Add support for wrapt 1.13 * Fixes handling of nested partial functions * Fix regression with the import resolver * Fix crash with invalid dataclass field call - Release 2.8.1 * Adds support of type hints inside numpy's brains. * Enable inference of dataclass import from pydantic.dataclasses. This allows the dataclasses brain to recognize pydantic dataclasses. * Fix regression on ClassDef inference * Fix regression on Compare node inference * Extended attrs brain to support the provisional APIs * Astroid does not trigger it's own deprecation warning anymore. * Improve brain for ``typing.Callable`` and ``typing.Type``. * Fix bug with importing namespace packages with relative imports * The ``is_typing_guard`` and ``is_sys_guard`` functions are deprecated and will be removed in 3.0.0. They are complex meta-inference functions that are better suited for pylint.
Comments 0