python-astroid

Edit Package 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.

Refresh
Refresh
Source Files
Filename Size Changed
astroid-2.9.3-gh.tar.gz 0000409069 399 KB
python-astroid.changes 0000061187 59.8 KB
python-astroid.spec 0000002781 2.72 KB
Revision 35 (latest revision is 55)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 946671 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 35)
- update to 2.9.3:
  * Fixed regression where packages without a ``__init__.py`` file were
    not recognized or imported correctly.
  * Fixed regression in ``astroid.scoped_nodes`` where ``_is_metaclass``
    was not accessible anymore.
  * ``NodeNG.frame()`` and ``NodeNG.statement()`` will start raising ``ParentMissingError``
    instead of ``AttributeError`` in astroid 3.0. This behaviour can already be triggered
    by passing ``future=True`` to a ``frame()`` or ``statement()`` call.
  * Prefer the module loader get_source() method in AstroidBuilder's
    module_build() when possible to avoid assumptions about source
    code being available on a filesystem.  Otherwise the source cannot
    be found and application behavior changes when running within an
    embedded hermetic interpreter environment (pyoxidizer, etc.).
  * Require Python 3.6.2 to use astroid.
  * Removed custom ``distutils`` handling for resolving paths to submodules.
  * Fix ``deque.insert()`` signature in ``collections`` brain.
  * Fix ``Module`` nodes not having a ``col_offset``, ``end_lineno``, and ``end_col_offset``
    attributes.
  * Fix typing and update explanation for ``Arguments.args`` being ``None``.
  * Fix crash if a variable named ``type`` is subscripted in a generator expression.
  * Enable inference of dataclass import from marshmallow_dataclass.
    This allows the dataclasses brain to recognize dataclasses annotated by marshmallow_dataclass.
  * Resolve symlinks in the import path
    Fixes inference error when the import path includes symlinks (e.g. Python
    installed on macOS via Homebrew).
Comments 0
openSUSE Build Service is sponsored by