From 0f2444c4ae6adf921147dd7fdaf8e7441118212fa2c732b57fb86147b0de9a08 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Jun 2024 22:04:15 +0000 Subject: [PATCH] - 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 --- astroid-3.1.0-gh.tar.gz | 3 --- astroid-3.2.2-gh.tar.gz | 3 +++ python-astroid.changes | 21 +++++++++++++++++++++ python-astroid.spec | 2 +- 4 files changed, 25 insertions(+), 4 deletions(-) delete mode 100644 astroid-3.1.0-gh.tar.gz create mode 100644 astroid-3.2.2-gh.tar.gz diff --git a/astroid-3.1.0-gh.tar.gz b/astroid-3.1.0-gh.tar.gz deleted file mode 100644 index 6eeaec7..0000000 --- a/astroid-3.1.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:3ba572a3faeabdd72ec79965b38867d1ce159ebec1281ba833928842b36cca32 -size 463675 diff --git a/astroid-3.2.2-gh.tar.gz b/astroid-3.2.2-gh.tar.gz new file mode 100644 index 0000000..757b0c8 --- /dev/null +++ b/astroid-3.2.2-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ff8e7de62e56c107334c15dfa336256901711e931e0f644a366bcb91e276a42 +size 465306 diff --git a/python-astroid.changes b/python-astroid.changes index 963b611..2586082 100644 --- a/python-astroid.changes +++ b/python-astroid.changes @@ -1,3 +1,24 @@ +------------------------------------------------------------------- +Sun Jun 30 22:03:18 UTC 2024 - Dirk Müller + +- 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. + ------------------------------------------------------------------- Fri Mar 22 19:54:17 UTC 2024 - Dirk Müller diff --git a/python-astroid.spec b/python-astroid.spec index 555d6c1..e4a0d76 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-astroid -Version: 3.1.0 +Version: 3.2.2 Release: 0 Summary: Representation of Python source as an AST for pylint License: LGPL-2.1-or-later