From dacb547acd4ffbc5211ad02372d6f92010cc14fb Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Wed, 9 Mar 2022 18:44:00 +0800 Subject: [PATCH] python3-astroid: upgrade 2.9.3 -> 2.10.0 Changelog: ========= * Fixed inference of "self" in binary operations in which "self" is part of a list or tuple. * Fixed builtin inference on `property` calls not calling the `postinit` of the new node, which resulted in instance arguments missing on these nodes. * Fixed a crash on "Super.getattr" when the attribute was previously uninferable due to a cache limit size. This limit can be hit when the inheritance pattern of a class (and therefore of the "__init__" attribute) is very large. * Inlcude names of keyword-only arguments in "astroid.scoped_nodes.Lambda.argnames". * Fixed a crash inferring on a "NewType" named with an f-string. * Add support for [attrs v21.3.0](https://github.com/python-attrs/attrs/releases/tag/21.3.0) which added a new `attrs` module alongside the existing `attr`. * Use the "end_lineno" attribute for the "NodeNG.tolineno" property when it is available. * Add "is_dataclass" attribute to "ClassDef" nodes. * Use "sysconfig" instead of "distutils" to determine the location of python stdlib files and packages. * Fixed crash with recursion error for inference of class attributes that referenced the class itself. * Fixed crash when trying to infer "items()" on the "__dict__" attribute of an imported module. * Add optional "NodeNG.position" attribute. Used for block nodes to highlight position of keyword(s) and name in cases where the AST doesn't provide good enough positional information. E.g. "nodes.ClassDef", "nodes.FunctionDef". * Fix "ClassDef.fromlineno". For Python < 3.8 the "lineno" attribute includes decorators. "fromlineno" should return the line of the "class" statement itself. * Performance improvements. Only run expensive decorator functions when non-default Deprecation warnings are enabled, eg. during a Pytest run. Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../{python3-astroid_2.9.3.bb => python3-astroid_2.10.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta-python/recipes-devtools/python/{python3-astroid_2.9.3.bb => python3-astroid_2.10.0.bb} (89%) diff --git a/meta-python/recipes-devtools/python/python3-astroid_2.9.3.bb b/meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb similarity index 89% rename from meta-python/recipes-devtools/python/python3-astroid_2.9.3.bb rename to meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb index 5828c24a237..fc23f17c6b1 100644 --- a/meta-python/recipes-devtools/python/python3-astroid_2.9.3.bb +++ b/meta-python/recipes-devtools/python/python3-astroid_2.10.0.bb @@ -4,7 +4,7 @@ SECTION = "devel/python" LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://LICENSE;md5=a70cf540abf41acb644ac3b621b2fad1" -SRC_URI[sha256sum] = "1efdf4e867d4d8ba4a9f6cf9ce07cd182c4c41de77f23814feb27ca93ca9d877" +SRC_URI[sha256sum] = "f616b9687a5f4afa673dfd2d684d2b6f38365c8ad7c6f27229dda1ede750c445" inherit pypi setuptools3