Public bug reported: Imported from Debian bug http://bugs.debian.org/1125340:
Package: python3-astroid Version: 4.0.2-1 Severity: normal Tags: upstream X-Debbugs-Cc: [email protected] Dear Maintainer, The classification of functions and methods for pygobject version 3.51.0 and later leads to incorrect results. This is caused by the workaround that made it possible to use inspect.ismethoddescriptor() being disabled in newer versions. Instead, the newly supported inspect.signature() should be used. Steps to reproduce: - install pygobject >= 3.51.0 - run pylint on code that calls a module level function with no arguments Current behavior: Calling those functions will wrongfully triggers "E1120: No value for argument 'self' in function call (no-value-for-parameter)" Expected behavior: The error should not be generated. References: https://github.com/pylint-dev/astroid/pull/2930 https://github.com/pylint-dev/astroid/issues/2929 https://github.com/pylint-dev/astroid/issues/2594 -- System Information: Debian Release: forky/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 6.17.0-8-generic (SMP w/4 CPU threads; PREEMPT) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages python3-astroid depends on: ii python3 3.13.9-3 ii python3-typing-extensions 4.15.0-2 python3-astroid recommends no packages. python3-astroid suggests no packages. -- no debconf information ** Affects: astroid (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2138250 Title: python3-astroid: Linting fails for GObject introspection bindings >=3.51.0 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/astroid/+bug/2138250/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
