pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-pylint



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu Sep 24 11:11:17 UTC 2026

Modified Files:
        pkgsrc/devel/py-pylint: Makefile distinfo

Log Message:
py-pylint: updated to 4.0.9

What's new in Pylint 4.0.9?

False Positives Fixed

- Fixed a false positive for ``no-self-use`` on a method that only uses
  ``self`` before a locally defined class (or other nested method), because
  the checker's could-be-a-function tracking state was not restored after
  visiting the nested method.

- Fix a false positive for :ref:`not-callable` when calling functions constructed with
  ``types.FunctionType`` or ``types.LambdaType``.

- Fix a false positive for ``unnecessary-direct-lambda-call`` when a directly called
  lambda in a class body wraps a comprehension containing an assignment expression.
  PEP 572 makes that a ``SyntaxError`` without the lambda's scope, so following the
  message produced code that would not compile.

- Fix a false positive for :ref:`unnecessary-ellipsis` when an ellipsis is the
  sole body statement of a method defined on a ``Protocol``.

- Fix a false positive for :ref:`bad-exception-cause` when the bases of the class
  being raised from cannot be inferred, such as an exception deriving from a
  C extension class. :ref:`raising-non-exception` and
  :ref:`catching-non-exception` already guard the same ``inherit_from_std_ex``
  helper with ``has_known_bases``.

False Negatives Fixed

- ``method-hidden`` is no longer silenced when the hidden method shares its name with
  a builtin function or with a function defined at module level. Only members of the
  ancestor classes themselves can excuse the method now.

Other Bug Fixes

- Fix a block-scoped ``# pylint: disable=`` directive placed inside an ``if``
  body leaking into sibling ``elif``/``else`` blocks for messages such as
  ``stop-iteration-return``, which default to a line-based (rather than
  node-based) message scope.

- Fix a false positive for ``declare-non-slot`` when a class variable is
  annotated with ``ClassVar`` without an initial value.

- Fix a crash in the ``no-member`` checker when attribute lookup raises an
  ``InferenceError``.

- Fix a crash in the ``unnecessary-default-type-args`` check when a ``Generator``
  or ``AsyncGenerator`` subscript holds an empty tuple, such as ``Generator[()]``.

- Fix a crash in ``method-hidden`` when a method shadows a name that ``builtins``
  binds to a node without a statement, such as ``help`` or ``license``. Every class
  inherits from ``object``, which lives in the ``builtins`` module, so no base class
  was needed to trigger it.


To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 pkgsrc/devel/py-pylint/Makefile
cvs rdiff -u -r1.107 -r1.108 pkgsrc/devel/py-pylint/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pylint/Makefile
diff -u pkgsrc/devel/py-pylint/Makefile:1.122 pkgsrc/devel/py-pylint/Makefile:1.123
--- pkgsrc/devel/py-pylint/Makefile:1.122       Sun Aug 30 15:37:15 2026
+++ pkgsrc/devel/py-pylint/Makefile     Thu Sep 24 11:11:17 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.122 2026/08/30 15:37:15 wiz Exp $
+# $NetBSD: Makefile,v 1.123 2026/09/24 11:11:17 adam Exp $
 #
 # Changes: https://github.com/pylint-dev/pylint/releases
 
-DISTNAME=      pylint-4.0.8
+DISTNAME=      pylint-4.0.9
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pylint/}

Index: pkgsrc/devel/py-pylint/distinfo
diff -u pkgsrc/devel/py-pylint/distinfo:1.107 pkgsrc/devel/py-pylint/distinfo:1.108
--- pkgsrc/devel/py-pylint/distinfo:1.107       Sun Aug 30 15:37:15 2026
+++ pkgsrc/devel/py-pylint/distinfo     Thu Sep 24 11:11:17 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.107 2026/08/30 15:37:15 wiz Exp $
+$NetBSD: distinfo,v 1.108 2026/09/24 11:11:17 adam Exp $
 
-BLAKE2s (pylint-4.0.8.tar.gz) = ae01505c8aa7309a37c2827721c2842818744e29fea4a46fa6c0f03e72da97b4
-SHA512 (pylint-4.0.8.tar.gz) = c0a30dc3c5a76d2c87009487eba44a7b8e14488de5d569e570e7538bb68001d0656e9926c7f28f2bf731cd8680bbdceee98d12182b0bb5bec4f73022f41e33df
-Size (pylint-4.0.8.tar.gz) = 1599177 bytes
+BLAKE2s (pylint-4.0.9.tar.gz) = d32fbe3595523f22622165301e2c19834e831b6f13f72132b96bec6763c10806
+SHA512 (pylint-4.0.9.tar.gz) = 499c7e5887b8b9781c7d051d7b332e4302477640433f344e6e99e35a1898266913ad74803958920ff884687929a9c2fa2ca1fee1cbdbbf5798520ddbebf8033c
+Size (pylint-4.0.9.tar.gz) = 1604187 bytes



Home | Main Index | Thread Index | Old Index