diff options
| author | Leon Anavi <leon.anavi@konsulko.com> | 2026-02-18 17:41:45 +0200 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2026-02-20 23:34:19 -0800 |
| commit | 97f198836780e10bbab37a8345f4f2011fb1e2b7 (patch) | |
| tree | 1cd66b9ee1eb83b2aa49f70b3fedd5da5e5f9e22 /meta-python/classes | |
| parent | 7578aa0b300e9ea118c2f8a1ba53f750ed4cd345 (diff) | |
| download | meta-openembedded-97f198836780e10bbab37a8345f4f2011fb1e2b7.tar.gz | |
python3-astroid: Upgrade 4.0.3 -> 4.1.0
Upgrade to release 4.1.0:
- Add support for equality constraints (``==``, ``!=``) in inference.
- Ensure ``ast.JoinedStr`` nodes are ``Uninferable`` when the
``ast.FormattedValue`` is ``Uninferable``. This prevents
``unexpected-keyword-arg`` messages in Pylint where the
``Uninferable`` string appeared in function arguments that were
constructed dynamically.
- Add support for type constraints (`isinstance(x, y)`) in inference.
- Make `type.__new__()` raise clear errors instead of returning `None`.
- Move object dunder methods from ``FunctionModel`` to ``ObjectModel``
to make them available on all object types, not just functions.
- ``lineno`` and ``end_lineno`` are now available on ``Arguments``.
- Add helper to iterate over all annotations nodes of function
arguments, ``Arguments.get_annotations()``.
- Skip direct parent when determining the ``Decorator`` frame.
- Add simple command line interface for astroid to output generated
AST. Use with ``python -m astroid``.
- Fix incorrect type inference for ``super().method()`` calls that
return ``Self``. Previously, astroid would infer the parent class
type instead of the child class type, causing pylint E1101 false
positives in method chaining scenarios.
- Add missing ``dtype`` and ``casting`` parameters to
``numpy.concatenate`` brain.
- Fix ``random.sample`` inference crash when sequence contains
uninferable elements.
- Fix ``random.sample`` crash when cloning ``ClassDef`` or
``FunctionDef`` nodes.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/classes')
0 files changed, 0 insertions, 0 deletions
