134 Commits

Author SHA256 Message Date
a7c93caa37 Accepting request 1325245 from devel:languages:python
- update to 4.0.3:
  * Fix inference of ``IfExp`` (ternary expression) nodes to
    avoid prematurely narrowing results in the face of inference
    ambiguity.
  * Fix base class inference for dataclasses using the PEP 695
    typing syntax.

OBS-URL: https://build.opensuse.org/request/show/1325245
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=63
2026-01-05 13:50:15 +00:00
906dbbfd21 - update to 4.0.3:
* Fix inference of ``IfExp`` (ternary expression) nodes to
    avoid prematurely narrowing results in the face of inference
    ambiguity.
  * Fix base class inference for dataclasses using the PEP 695
    typing syntax.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=125
2026-01-04 08:49:52 +00:00
58db59d613 Accepting request 1318120 from devel:languages:python
- Update to 4.0.2:
  * Handle FunctionDef blockstart_tolineno edge cases correctly.
  * Add HTTPMethod enum support to brain module for Python 3.11+.
  * Suppress SyntaxWarning for invalid escape sequences and return in finally
    on Python 3.14 when parsing modules.
  * Assign Import and ImportFrom nodes to module locals if used with global.
  * Support constraints from ternary expressions in inference.
  * Handle deprecated bool(NotImplemented) cast in const nodes.
  * Add support for boolean truthiness constraints (x, not x) in inference.
  * Fix false positive invalid-name on attrs classes with ClassVar annotated
    variables.
  * Prevent crash when parsing deeply nested parentheses causing MemoryError
    in python's built-in ast.
  * Fix crash when inferring namedtuple with invalid field name looking like
    f-string formatting.
  * Fix false positive no-member in except * handler.
  * Fix crash when comparing invalid dict literal
  * To alleviate circular imports, the manager argument to AstroidBuilder()
    is now required.
  * Constants now have a parent of nodes.SYNTHETIC_ROOT.
  * Fix crashes with large positive and negative list multipliers.
  * Fix precedence of path arg in modpath_from_file_with_callback to be
    higher than sys.path
  * Improve consistency of JoinedStr inference by not raising InferenceError
    and returning either Uninferable or a fully resolved Const.
  * Fix crash when typing._alias() call is missing arguments.
  * Remove support for Python 3.9 (and constant PY310_PLUS).
  * Include subclasses of standard property classes as property decorators
  * Modify astroid.bases and tests.test_nodes to reflect that enum.property
    was added in Python 3.11, not 3.10

OBS-URL: https://build.opensuse.org/request/show/1318120
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=62
2025-11-18 14:28:32 +00:00
0316b9206a - Update to 4.0.2:
* Handle FunctionDef blockstart_tolineno edge cases correctly.
  * Add HTTPMethod enum support to brain module for Python 3.11+.
  * Suppress SyntaxWarning for invalid escape sequences and return in finally
    on Python 3.14 when parsing modules.
  * Assign Import and ImportFrom nodes to module locals if used with global.
  * Support constraints from ternary expressions in inference.
  * Handle deprecated bool(NotImplemented) cast in const nodes.
  * Add support for boolean truthiness constraints (x, not x) in inference.
  * Fix false positive invalid-name on attrs classes with ClassVar annotated
    variables.
  * Prevent crash when parsing deeply nested parentheses causing MemoryError
    in python's built-in ast.
  * Fix crash when inferring namedtuple with invalid field name looking like
    f-string formatting.
  * Fix false positive no-member in except * handler.
  * Fix crash when comparing invalid dict literal
  * To alleviate circular imports, the manager argument to AstroidBuilder()
    is now required.
  * Constants now have a parent of nodes.SYNTHETIC_ROOT.
  * Fix crashes with large positive and negative list multipliers.
  * Fix precedence of path arg in modpath_from_file_with_callback to be
    higher than sys.path
  * Improve consistency of JoinedStr inference by not raising InferenceError
    and returning either Uninferable or a fully resolved Const.
  * Fix crash when typing._alias() call is missing arguments.
  * Remove support for Python 3.9 (and constant PY310_PLUS).
  * Include subclasses of standard property classes as property decorators
  * Modify astroid.bases and tests.test_nodes to reflect that enum.property
    was added in Python 3.11, not 3.10

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=123
2025-11-17 04:34:07 +00:00
f430284a65 Accepting request 1306358 from devel:languages:python
- add py314-failing-tests.patch

OBS-URL: https://build.opensuse.org/request/show/1306358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=61
2025-09-23 14:05:40 +00:00
832ed79542 - add py314-failing-tests.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=121
2025-09-21 19:34:24 +00:00
cf078417bf Accepting request 1295268 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1295268
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=60
2025-07-24 16:41:57 +00:00
f8769f5066 - Update to 3.3.11
* Fix a crash when parsing an empty arbitrary expression with
    ``extract_node`` (``extract_node("__()")``).
  * Fix a crash when parsing a slice called in a decorator on a
    function that is also decorated with a known ``six`` decorator.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=119
2025-07-23 10:33:28 +00:00
341e0118e8 Accepting request 1285430 from devel:languages:python
Fix the .changes file format

OBS-URL: https://build.opensuse.org/request/show/1285430
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=59
2025-06-13 16:44:27 +00:00
630b738f58 Fix .changes file, osc service runall source_validator
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=117
2025-06-12 12:52:38 +00:00
4195d1bad8 Accepting request 1277386 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=58
2025-05-15 14:59:54 +00:00
b8769bc83f - Update to 3.3.10
* Avoid importing submodules sharing names with standard library modules.
  * Fix bug where ``pylint code.custom_extension`` would analyze ``code.py``
    or ``code.pyi`` instead if they existed.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=115
2025-05-14 10:18:07 +00:00
8406e72f47 Accepting request 1255009 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1255009
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=57
2025-03-24 12:25:17 +00:00
2109829eeb - Update to 3.3.9
* Fix crash when `sys.modules` contains lazy loader objects
    during checking.
  * Upload release assets to PyPI via Trusted Publishing.
- Update BuildRequires from pyproject.toml

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=113
2025-03-21 13:03:38 +00:00
3c0f3fb1a8 Accepting request 1234570 from devel:languages:python
- update to 3.3.8:
  * Fix inability to import `collections.abc` in python 3.13.1.
    The reported fixes in astroid 3.3.6 and 3.3.7 did not actually
    fix this issue.

OBS-URL: https://build.opensuse.org/request/show/1234570
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=56
2025-01-06 15:04:55 +00:00
591b4ef01d - update to 3.3.8:
* Fix inability to import `collections.abc` in python 3.13.1.
    The reported fixes in astroid 3.3.6 and 3.3.7 did not actually
    fix this issue.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=111
2025-01-02 14:15:11 +00:00
c708150b5c Accepting request 1217044 from devel:languages:python
- update to 3.3.5:
  * Control setting local nodes outside of the supposed local's
    constructor.
  * Fix Python 3.13 compatibility re: `collections.abc`

OBS-URL: https://build.opensuse.org/request/show/1217044
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=55
2024-10-23 19:08:58 +00:00
55c7f0afdf - update to 3.3.5:
* Control setting local nodes outside of the supposed local's
    constructor.
  * Fix Python 3.13 compatibility re: `collections.abc`

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=109
2024-10-22 13:46:29 +00:00
5ea4b747ff Accepting request 1202985 from devel:languages:python
- update to 3.3.4:
  * Fix regression with f-string inference.
  * Fix bug with ``manager.clear_cache()`` not fully clearing
    cache
  * Fix a crash from inferring empty format specs.
  * Fix inference regression with property setters.
  * Add annotation-only instance attributes to attrs classes to
    fix `no-member` false positives.
  * Restore support for soft-deprecated members of the ``typing``
    module with python 3.13.
  * Fix a crash introduced in 3.3.0 involving invalid format
    strings.

OBS-URL: https://build.opensuse.org/request/show/1202985
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=54
2024-09-25 19:51:16 +00:00
bb404eda28 - update to 3.3.4:
* Fix regression with f-string inference.
  * Fix bug with ``manager.clear_cache()`` not fully clearing
    cache
  * Fix a crash from inferring empty format specs.
  * Fix inference regression with property setters.
  * Add annotation-only instance attributes to attrs classes to
    fix `no-member` false positives.
  * Restore support for soft-deprecated members of the ``typing``
    module with python 3.13.
  * Fix a crash introduced in 3.3.0 involving invalid format
    strings.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=107
2024-09-24 13:54:53 +00:00
e5238126ce Accepting request 1192588 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1192588
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=53
2024-08-10 17:05:58 +00:00
693950acc7 - Update to 3.3.0
* Add support for Python 3.13.
  * Remove support for Python 3.8 (and constants `PY38`,
    `PY39_PLUS`, and `PYPY_7_3_11_PLUS`).
  * Add the ``__annotations__`` attribute to the ``ClassDef`` object model.
  * Implement inference for JoinedStr and FormattedValue
  * Add support for ``ssl.OP_LEGACY_SERVER_CONNECT`` (new in Python 3.12).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=105
2024-08-08 10:28:42 +00:00
9f4e3b6ef8 Accepting request 1189108 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1189108
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=52
2024-07-24 13:29:27 +00:00
9f6a3418ed Accepting request 1189035 from home:glaubitz:branches:devel:languages:python
- Update to 3.2.4
  * Avoid reporting unary/binary op type errors when inference
    is ambiguous.
- from version 3.2.3
  * Fix ``AssertionError`` when inferring a property consisting
    of a partial function.

OBS-URL: https://build.opensuse.org/request/show/1189035
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=103
2024-07-22 18:48:53 +00:00
3e3484f21b Accepting request 1185391 from devel:languages:python
- update to 3.2.2:
  * Improve inference for generic classes using the PEP 695
    syntax (Python 3.12).
  * Fix ``RecursionError`` in ``infer_call_result()`` for certain
    ``__call__`` methods.
  * Add ``AstroidManager.prefer_stubs`` attribute to control the
    astroid 3.2.0 feature that prefers stubs.
  * ``igetattr()`` returns the last same-named function in a
    class (instead of the first). This avoids false positives
    in pylint with ``@overload``.
  * Adds ``module_denylist`` to ``AstroidManager`` for modules to
    be skipped during AST generation. Modules in this list will
    cause an ``AstroidImportError`` to be raised when an AST
    for them is requested.
  * Make ``astroid.interpreter._import.util.is_namespace`` only
    consider modules using a loader set to ``NamespaceLoader``
    or ``None`` as namespaces.

OBS-URL: https://build.opensuse.org/request/show/1185391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=51
2024-07-05 17:45:10 +00:00
9a5f856633 - update to 3.2.2:
* Improve inference for generic classes using the PEP 695
    syntax (Python 3.12).
  * Fix ``RecursionError`` in ``infer_call_result()`` for certain
    ``__call__`` methods.
  * Add ``AstroidManager.prefer_stubs`` attribute to control the
    astroid 3.2.0 feature that prefers stubs.
  * ``igetattr()`` returns the last same-named function in a
    class (instead of the first). This avoids false positives
    in pylint with ``@overload``.
  * Adds ``module_denylist`` to ``AstroidManager`` for modules to
    be skipped during AST generation. Modules in this list will
    cause an ``AstroidImportError`` to be raised when an AST
    for them is requested.
  * Make ``astroid.interpreter._import.util.is_namespace`` only
    consider modules using a loader set to ``NamespaceLoader``
    or ``None`` as namespaces.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=101
2024-06-30 22:04:15 +00:00
cb17148405 Accepting request 1160817 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1160817
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=50
2024-03-25 20:06:40 +00:00
a736edde7b - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=99
2024-03-22 19:55:45 +00:00
09ecbd9ec6 Accepting request 1135253 from devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1135253
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=49
2023-12-28 21:54:32 +00:00
f1a424594f - 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=97
2023-12-27 09:43:11 +00:00
7e6352677a Accepting request 1118346 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1118346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=48
2023-10-19 20:47:17 +00:00
027ea79a63 Accepting request 1118344 from home:mcalabkova:branches:devel:languages:python:312
- Update to 3.0.1
  * Add support for Python 3.12, including PEP 695 type parameter syntax.
  * Remove support for Python 3.7.
  * Use the global inference cache when inferring, even without an explicit
    InferenceContext.
  * Following a deprecation period starting in astroid 2.7.0, the astroid.node_classes
    and astroid.scoped_nodes modules have been removed in favor of astroid.nodes.node_classes
    and astroid.nodes.scoped_nodes.
  * Following a deprecation period starting in astroid 2.12.0, the astroid.mixins module
    has been removed in favor of astroid.nodes._base_nodes (private).
  * Remove @cached and @cachedproperty decorator (just use @cached_property from the stdlib).
  * Remove the inference module. Node inference methods are now in the module
    defining the node, rather than being associated to the node afterward.
  * Move LookupMixIn to astroid.nodes._base_nodes and make it private.
  * Remove the shims for OperationError, BinaryOperationError, and UnaryOperationError
    in exceptions. They were moved to util in astroid 1.5.0.
  * Reduce file system access in ast_from_file().
  * nodes.FunctionDef no longer inherits from nodes.Lambda.
  * infer_call_result now shares the same interface across all implementations.
  * Remove unused and / or deprecated constants.
  * The future argument to each method is deprecated and will be removed in astroid 4.0.
  * So many more changes, see https://github.com/pylint-dev/astroid/blob/main/ChangeLog
    for a complete list.

OBS-URL: https://build.opensuse.org/request/show/1118344
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=95
2023-10-17 15:46:15 +00:00
d1541c0f34 Accepting request 1098939 from devel:languages:python
- update to 2.15.6:
  * Harden ``get_module_part()`` against ``"."``.
  * Avoid expensive list/tuple multiplication operations that
    would result in ``MemoryError``.

OBS-URL: https://build.opensuse.org/request/show/1098939
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=47
2023-07-19 17:09:38 +00:00
9c2fe1fac6 - update to 2.15.6:
* Harden ``get_module_part()`` against ``"."``.
  * Avoid expensive list/tuple multiplication operations that
    would result in ``MemoryError``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=93
2023-07-16 11:41:00 +00:00
79445593cc Accepting request 1087263 from devel:languages:python
- update to 2.15.5:
  * Handle ``objects.Super`` in ``helpers.object_type()``.

OBS-URL: https://build.opensuse.org/request/show/1087263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=46
2023-05-16 12:16:04 +00:00
babc8d198d - update to 2.15.5:
* Handle ``objects.Super`` in ``helpers.object_type()``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=91
2023-05-15 16:20:18 +00:00
462a18e51d Accepting request 1083439 from devel:languages:python
- Correct Requires for typing_extensions.

OBS-URL: https://build.opensuse.org/request/show/1083439
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=45
2023-04-29 15:27:44 +00:00
fea8e5dd34 - Correct Requires for typing_extensions.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=89
2023-04-28 07:12:51 +00:00
21963bf0d5 Accepting request 1082830 from devel:languages:python
- update to 2.15.4:
  * Add visitor function for ``TryStar`` to ``AsStringVisitor``
    and add ``TryStar`` to ``astroid.nodes.ALL_NODE_CLASSES``.

OBS-URL: https://build.opensuse.org/request/show/1082830
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=44
2023-04-27 17:57:09 +00:00
fbfa3ba1cb - update to 2.15.4:
* Add visitor function for ``TryStar`` to ``AsStringVisitor``
    and add ``TryStar`` to ``astroid.nodes.ALL_NODE_CLASSES``.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=87
2023-04-25 22:01:09 +00:00
ec3b35f980 Accepting request 1082058 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1082058
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=43
2023-04-22 20:03:08 +00:00
4c4d017ded Accepting request 1081333 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081333
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=85
2023-04-21 15:12:43 +00:00
d6ca129969 Accepting request 1080002 from devel:languages:python
- 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.

OBS-URL: https://build.opensuse.org/request/show/1080002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=42
2023-04-20 13:13:24 +00:00
54167c105e - update to 2.15.3:
* Fix ``infer_call_result()`` crash on methods called
    ``with_metaclass()``
  * Suppress ``UserWarning`` when finding module specs.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=83
2023-04-17 19:07:57 +00:00
d1e9fb3ed6 - 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=82
2023-04-16 09:21:11 +00:00
8759da0cb9 Accepting request 1058347 from devel:languages:python
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1058347
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=41
2023-01-15 16:57:59 +00:00
77ba4a3f17 - update to v2.12.14:
* Handle the effect of properties on the __init__ of a dataclass
    correctly.
  * Handle the effect of kw_only=True in dataclass fields correctly.
  * Handle the effect of init=False in dataclass fields correctly.
  * Fix crash if numpy module doesn't have version attribute.
  * Handle AttributeError during str.format template inference tip
    evaluation

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=80
2023-01-07 08:53:07 +00:00
dd4c7ec00a Accepting request 1039738 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1039738
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=40
2022-12-04 13:57:43 +00:00
2c5918efbd Accepting request 1039708 from home:yarunachalam:branches:devel:languages:python
- Update to 2.12.13: 
  * Prevent returning an empty list for ``ClassDef.slots()`` when the mro list contains one class & it is not ``object``.
  Refs PyCQA/pylint#5099
  * Prevent a crash when inferring calls to ``str.format`` with inferred arguments
  that would be invalid.
  Closes #1856
  * Infer the `length` argument of the ``random.sample`` function.
  Refs PyCQA/pylint#7706
  * Catch ``ValueError`` when indexing some builtin containers and sequences during inference.
  Closes #1843

OBS-URL: https://build.opensuse.org/request/show/1039708
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-astroid?expand=0&rev=78
2022-12-03 07:26:11 +00:00
5be13e7892 Accepting request 1032176 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1032176
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-astroid?expand=0&rev=39
2022-10-30 17:28:26 +00:00