./devel/py-astroid, Rebuild a new abstract syntax tree from Pythons ast

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 2.5.7, Package name: py38-astroid-2.5.7, Maintainer: kamel.derouiche

The aim of this module is to provide a common base representation of Python
source code. It is currently the library powering pylint's capabilities.

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 can also build
partial trees by inspecting living objects.


Required to run:
[devel/py-setuptools] [lang/py-six] [devel/py-wrapt] [devel/py-lazy-object-proxy] [devel/py-typed-ast] [lang/python37]

Required to build:
[pkgtools/cwrappers] [devel/py-test-runner]

Master sites:

SHA1: f2c6fcdee28db4a21cb11b8c9fa6e6b6eb453556
RMD160: 657ec2ccb9e1153deaebfaa5e77e60fe6c199bb8
Filesize: 179.671 KB

Version history: (Expand)


CVS history: (Expand)


   2021-06-01 07:14:56 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-astroid: updated to 2.5.7

What's New in astroid 2.5.7?

* Fix six.with_metaclass transformation so it doesn't break user defined \ 
transformations.
* Fix detection of relative imports.
* Fix inference of instance attributes defined in base classes
* Update `infer_named_tuple` brain to reject namedtuple definitions
  that would raise ValueError
* Do not set instance attributes on builtin object()
* Fix some spurious cycles detected in ``context.path`` leading to more cases
  that can now be inferred
* Add ``kind`` field to ``Const`` nodes, matching the structure of the built-in \ 
ast Const.
  The kind field is "u" if the literal is a u-prefixed string, and \ 
``None`` otherwise.
* Fix property inference in class contexts for properties defined on the metaclass
* Update enum brain to fix definition of __members__ for subclass-defined Enums
* Update random brain to fix a crash with inference of some sequence elements
* Fix inference of attributes defined in a base class that is an inner class
* Allow inferring a return value of None for non-abstract empty functions and
  functions with no return statements (implicitly returning None)
* scm_setuptools has been added to the packaging.
* Astroid's tags are now the standard form ``vX.Y.Z`` and not ``astroid-X.Y.Z`` \ 
anymore.
* Add initial support for Pattern Matching in Python 3.10
   2021-04-26 14:58:24 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-astroid: updated to 2.5.6

What's New in astroid 2.5.6?
============================
Release Date: 2021-04-25

* Fix retro-compatibility issues with old version of pylint

What's New in astroid 2.5.5?
============================
Release Date: 2021-04-24

* Fixes the discord link in the project urls of the package.

What's New in astroid 2.5.4?
============================
Release Date: 2021-04-24

* The packaging is now done via setuptools exclusively. ``doc``, ``tests``, and \ 
``Changelog`` are
  not packaged anymore - reducing the size of the package greatly.

* Debian packaging is now  (officially) done in \ 
https://salsa.debian.org/python-team/packages/astroid.

* ``__pkginfo__`` now  only contain ``__version__`` (also accessible with \ 
``astroid.__version__``),
  other meta-information are still accessible with ``import \ 
importlib;metadata.metadata('astroid')``.

* Added inference tip for ``typing.Tuple`` alias

* Fix crash when evaluating ``typing.NamedTuple``

* COPYING was removed in favor of COPYING.LESSER and the latter was renamed to \ 
LICENSE to make more apparent
  that the code is licensed under LGPLv2 or later.

* Moved from appveyor and travis to Github Actions for continuous integration.
   2021-04-16 07:44:05 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-astroid: updated to 2.5.3

What's New in astroid 2.5.3?
============================
* Takes into account the fact that subscript inferring for a ClassDef may \ 
involve __class_getitem__ method
* Reworks the `collections` and `typing` brain so that `pylint`s acceptance \ 
tests are fine.
* Use ``inference_tip`` for ``typing.TypedDict`` brain.
* Fix mro for classes that inherit from typing.Generic
* Add inference tip for typing.Generic and typing.Annotated with \ 
``__class_getitem__``
   2021-03-31 08:36:50 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-astroid: move PYTHON_VERSIONS_INCOMPATIBLE before pyversion.mk
   2021-03-30 11:20:16 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-astroid: updated to 2.5.2

What's New in astroid 2.5.2?
* Detects `import numpy` as a valid `numpy` import.
* Iterate over ``Keywords`` when using ``ClassDef.get_children``
   2021-03-01 09:49:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-astroid: updated to 2.5.1

What's New in astroid 2.5.1?
* The ``context.path`` is reverted to a set because otherwise it leads to false \ 
positives
  for non `numpy` functions.
* Don't transform dataclass ClassVars
* Improve typing.TypedDict inference
* Fix the `Duplicates found in MROs` false positive.
   2021-02-22 10:22:05 by Adam Ciarcinski | Files touched by this commit (4) | Package updated
Log message:
py-astroid: updated to 2.5

What's New in astroid 2.5?

* Adds `attr_fset` in the `PropertyModel` class.
* Remove support for Python 3.5.
* Remove the runtime dependency on ``six``. The ``six`` brain remains in
  astroid.
* Enrich the ``brain_collection`` module so that ``__class_getitem__`` method is \ 
added to `deque` for
  ``python`` version above 3.9.
* The ``context.path`` is now a ``dict`` and the ``context.push`` method
  returns ``True`` if the node has been visited a certain amount of times.
* Adds a brain for type object so that it is possible to write `type[int]` in \ 
annotation.
* Add ``__class_getitem__`` method to ``subprocess.Popen`` brain under Python \ 
3.9 so that it is seen as subscriptable by pylint.
* Adds `degrees`, `radians`, which are `numpy ufunc` functions, in the \ 
`numpy` brain. Adds `random` function in the `numpy.random` brain.
* Fix deprecated importlib methods
* Fix a crash in inference caused by `Uninferable` container elements
* Add `python 3.9` support.
* The flat attribute of ``numpy.ndarray`` is now inferred as an \ 
``numpy.ndarray`` itself.
  It should be a ``numpy.flatiter`` instance, but this class is not yet \ 
available in the numpy brain.
* Fix a bug for dunder methods inference of function objects
* Fixes a bug in the signature of the ``ndarray.__or__`` method,
  in the ``brain_numpy_ndarray.py`` module.
* Fixes a to-list cast bug in ``starred_assigned_stmts`` method,
  in the ``protocols.py` module.
* Added a brain for ``hypothesis.strategies.composite``
* The transpose of a ``numpy.ndarray`` is also a ``numpy.ndarray``
* Added a brain for ``sqlalchemy.orm.session``
* Separate string and bytes classes patching
* Prevent recursion error for self referential length calls
* Added missing methods to the brain for ``mechanize``, to fix pylint false positives
* Added more supported parameters to ``subprocess.check_output``
* Fix recursion errors with pandas
* Added exception inference for `UnicodeDecodeError`
* `FunctionDef.is_generator` properly handles `yield` nodes in `If` tests
* Fixed exception-chaining error messages.
* Fix failure to infer base class type with multiple inheritance and qualified names
* Fix interpretation of ``six.with_metaclass`` class definitions.
* Reduce memory usage of astroid's module cache.
* Remove dependency on `imp`.
* Do not crash when encountering starred assignments in enums.
* Fix a crash in functools.partial inference when the arguments cannot be determined
* Fix a crash caused by a lookup of a monkey-patched method
* ``is_generator`` correctly considers `Yield` nodes in `AugAssign` nodes
  This fixes a false positive with the `assignment-from-no-return` pylint check.
* Corrected the parent of function type comment nodes.
  These nodes used to be parented to their original ast.FunctionDef parent
  but are now correctly parented to their astroid.FunctionDef parent.
   2020-07-15 11:19:05 by Adam Ciarcinski | Files touched by this commit (2)
Log message:
py-astroid: allow newer lazy_object_proxy