Revisions of python-astroid

Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1160817 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 50)
- update to 3.1.0:
  * Include PEP 695 (Python 3.12) generic type syntax nodes in
    ``get_children()``, allowing checkers to visit them.
  * Add ``__main__`` as a possible inferred value for
    ``__name__`` to improve control flow inference around
    ``if __name__ == "__main__":`` guards.
  * Following a deprecation period, the ``names`` arg to the
    ``Import`` constructor and the ``op`` arg to the ``BoolOp``
    constructor are now required, and the ``doc`` args
    to the ``PartialFunction`` and ``Property`` constructors
    have been removed (call ``postinit(doc_node=...)`` instead.)
  * Following a deprecation announced in astroid 1.5.0, the alias
    ``AstroidBuildingException`` is removed in favor of
    ``AstroidBuildingError``.
  * Include modname in AST warnings. Useful for ``invalid escape
    sequence`` warnings with Python 3.12.
  * ``RecursionError`` is now trapped and logged out as
    ``UserWarning`` during astroid node transformations with
    instructions about raising the system recursion limit.
  * Suppress ``SyntaxWarning`` for invalid escape sequences on
    Python 3.12 when parsing modules.
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1135253 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 49)
- update to 3.0.2:
  * Avoid duplicate inference results for some uses of
    ``typing.X`` constructs like ``Tuple[Optional[int], ...]``.
    This was causing pylint to occasionally omit messages like
    ``deprecated-typing-alias``.

- Correct Requires for typing_extensions.
- Update to 2.12.13:
- Update to 2.12.12:
    set to None.
  Closes #1755
    FunctionDef parent but are now correctly parented to their
- Drop part_rm_dep_imp.patch fixed upstream
  * Properly construct the arguments of infered property descriptors
  * Properly analyze CFFI compiled extensions.
    * brain plugins can now register hooks to handle failed imports,
    * Fix names grabed using wildcard import in "absolute import mode"
      (ie with absolute_import activated from the __future__ or with
    * fix #20760: crash on pyreverse : AttributeError: 'Subscript'
    by Dave Borowitz
  * new InstanceMethod node introduced to wrap bound method (eg
  * compatibility with python2.3 and logilab-common 0.21
  * .locals and .globals on scoped node handle now a list of
Ana Guerrero's avatar Ana Guerrero (anag+factory) accepted request 1098939 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 47)
- update to 2.15.6:
  * Harden ``get_module_part()`` against ``"."``.
  * Avoid expensive list/tuple multiplication operations that
    would result in ``MemoryError``.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1087263 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 46)
- update to 2.15.5:
  * Handle ``objects.Super`` in ``helpers.object_type()``.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1083439 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 45)
- Correct Requires for typing_extensions.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1082830 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 44)
- update to 2.15.4:
  * Add visitor function for ``TryStar`` to ``AsStringVisitor``
    and add ``TryStar`` to ``astroid.nodes.ALL_NODE_CLASSES``.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1080002 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 42)
- update to 2.15.3:
  * Fix ``infer_call_result()`` crash on methods called
    ``with_metaclass()``
  * Suppress ``UserWarning`` when finding module specs.

- 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.
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1058347 from Factory Maintainer's avatar Factory Maintainer (factory-maintainer) (revision 41)
Automatic submission by obs-autosubmit
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1010535 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 38)
- update to 2.12.11:
  * Improve detection of namespace packages for the modules with ``__spec__``
    set to None.
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).
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 931287 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 33)
- update to 2.8.5:
  * Use more permissive versions for the ``typed-ast`` dependencie
    (<2.0 instead of <1.5)
  * Fix crash on inference of ``__len__``.
  * Added missing ``kind`` (for ``Const``) and ``conversion``
    (for ``FormattedValue``) fields to repr.
  * Fix crash with assignment expressions, nested if expressions
    and filtering of statements
  * Fix incorrect filtering of assignment expressions statements
Displaying revisions 1 - 20 of 50
openSUSE Build Service is sponsored by