Subject: CVS commit: pkgsrc/devel/py-astroid
From: Adam Ciarcinski
Date: 2022-07-18 20:57:41
Message id: 20220718185741.CA8D3FB1A@cvs.NetBSD.org

Log Message:
py-astroid: updated to 2.12.2

What's New in astroid 2.12.2?
=============================

* Fixed crash in modulo operations for divisions by zero.

* Fixed crash with recursion limits during inference.

What's New in astroid 2.12.1?
=============================

* Fix a crash when inferring old-style string formatting (``%``) using tuples.

* Fix a crash when ``None`` (or a value inferred as ``None``) participates in a
  ``**`` expression.

* Fix a crash involving properties within ``if`` blocks.

What's New in astroid 2.12.0?
=============================

* Fix signal has no ``connect`` member for PySide2 5.15.2+ and PySide6

* ``astroid`` now requires Python 3.7.2 to run.

* Avoid setting a Call as a base for classes created using ``six.with_metaclass()``.

* Fix detection of builtins on ``PyPy`` 3.9.

* Fix ``re`` brain on Python ``3.11``. The flags now come from ``re._compile``.

* Build ``nodes.Module`` for frozen modules which have location information in their
  ``ModuleSpec``.

* The ``astroid.mixins`` module has been deprecated and marked for removal in 3.0.0.

* Capture and log messages emitted by C extensions when importing them.
  This prevents contaminating programmatic output, e.g. pylint's JSON reporter.

* Calls to ``str.format`` are now correctly inferred.

* ``__new__`` and ``__init__`` have been added to the ``ObjectModel`` and are now
  inferred as ``BoundMethods``.

* Old style string formatting (using ``%`` operators) is now correctly inferred.

* Adds missing enums from ``ssl`` module.

* Remove dependency on ``pkg_resources`` from ``setuptools``.

* Allowed ``AstroidManager.clear_cache`` to reload necessary brain plugins.

* Fixed incorrect inferences after rebuilding the builtins module, e.g. by calling
  ``AstroidManager.clear_cache``.

* On Python versions >= 3.9, ``astroid`` now understands subscripting
  builtin classes such as ``enumerate`` or ``staticmethod``.

* Fixed inference of ``Enums`` when they are imported under an alias.

* Rename ``ModuleSpec`` -> ``module_type`` constructor parameter to match \ 
attribute
  name and improve typing. Use ``type`` instead.

* ``ObjectModel`` and ``ClassModel`` now know about their ``__new__`` and \ 
``__call__`` attributes.

* Fixed pylint ``not-callable`` false positive with nested-tuple assignment in a \ 
for-loop.

* Instances of builtins created with ``__new__(cls, value)`` are now inferred.

* Infer the return value of the ``.copy()`` method on ``dict``, ``list``, ``set``,
  and ``frozenset``.

* Fixed inference of elements of living container objects such as tuples and \ 
sets in the
  ``sys`` and ``ssl`` modules.

* Add ``pathlib`` brain to handle ``pathlib.PurePath.parents`` inference.

* Avoid inferring the results of ``**`` operations involving values greater than \ 
``1e5``
  to avoid expensive computation.

* Fix test for Python ``3.11``. In some instances ``err.__traceback__`` will
  be uninferable now.

* Add brain for numpy core module ``einsumfunc``.

* Infer the ``DictUnpack`` value for ``Dict.getitem`` calls.

* Fix a crash involving properties within ``try ... except`` blocks.

* Prevent creating ``Instance`` objects that proxy other ``Instance``s when there is
  ambiguity (or user error) in calling ``__new__(cls)``.

Files:
RevisionActionfile
1.59modifypkgsrc/devel/py-astroid/Makefile
1.19modifypkgsrc/devel/py-astroid/PLIST
1.52modifypkgsrc/devel/py-astroid/distinfo