summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-astroid_4.1.0.bb
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2026-02-18 17:41:45 +0200
committerKhem Raj <raj.khem@gmail.com>2026-02-20 23:34:19 -0800
commit97f198836780e10bbab37a8345f4f2011fb1e2b7 (patch)
tree1cd66b9ee1eb83b2aa49f70b3fedd5da5e5f9e22 /meta-python/recipes-devtools/python/python3-astroid_4.1.0.bb
parent7578aa0b300e9ea118c2f8a1ba53f750ed4cd345 (diff)
downloadmeta-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/recipes-devtools/python/python3-astroid_4.1.0.bb')
-rw-r--r--meta-python/recipes-devtools/python/python3-astroid_4.1.0.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-astroid_4.1.0.bb b/meta-python/recipes-devtools/python/python3-astroid_4.1.0.bb
new file mode 100644
index 0000000000..1303b0165d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-astroid_4.1.0.bb
@@ -0,0 +1,37 @@
1SUMMARY = "An abstract syntax tree for Python with inference support."
2HOMEPAGE = "https://pypi.python.org/pypi/astroid"
3SECTION = "devel/python"
4LICENSE = "LGPL-2.1-only"
5LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1"
6
7SRC_URI[sha256sum] = "e2fbab37f205a651e6a168cb1e9a6a10677f6fa6a1c21833d113999855b04259"
8
9inherit pypi python_setuptools_build_meta
10
11DEPENDS += "\
12 python3-pytest-runner-native \
13 python3-wheel-native \
14"
15
16PACKAGES =+ "${PN}-tests"
17
18FILES:${PN}-tests += " \
19 ${PYTHON_SITEPACKAGES_DIR}/astroid/test* \
20 ${PYTHON_SITEPACKAGES_DIR}/astroid/__pycache__/test* \
21"
22
23RDEPENDS:${PN}:class-target += "\
24 python3-lazy-object-proxy \
25 python3-logging \
26 python3-six \
27 python3-wrapt \
28 python3-setuptools \
29 python3-typing-extensions \
30"
31
32RDEPENDS:${PN}-tests:class-target += "\
33 python3-unittest \
34 python3-xml \
35"
36
37BBCLASSEXTEND = "native nativesdk"