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.15.2-gh.tar.gz | 0000461132 450 KB | |
python-astroid.changes | 0000066289 64.7 KB | |
python-astroid.spec | 0000003057 2.99 KB |
Revision 82 (latest revision is 110)
Dirk Mueller (dirkmueller)
committed
(revision 82)
- update to 2.15.2: * Support more possible usages of ``attrs`` decorators. * Restore behavior of setting a Call as a base for classes created using ``six.with_metaclass()``, and harden support for using enums as metaclasses in this case. * astroid now supports ``TryStar`` nodes from python 3.11 and should be fully compatible with python 3.11. * ``Formattedvalue.postinit`` is now keyword only. This is to allow correct typing of the ``Formattedvalue`` class. * ``Astroid`` now supports custom import hooks. * ``astroid`` now infers return values from match cases. * ``AstroidManager.clear_cache`` now also clears the inference context cache. * ``Astroid`` now retrieves the default values of keyword only arguments and sets them on ``Arguments.kw_defaults``. * ``Uninferable`` now has the type ``UninferableBase``. This is to facilitate correctly type annotating code that uses this singleton. * Deprecate ``modutils.is_standard_module()``. It will be removed in the next minor release. * Fix ``are_exclusive`` function when a walrus operator is used inside ``IfExp.test`` field.
Comments 0