diff --git a/doc/whatsnew/4/4.0/index.rst b/doc/whatsnew/4/4.0/index.rst index 4d7c20b612..78d5847021 100644 --- a/doc/whatsnew/4/4.0/index.rst +++ b/doc/whatsnew/4/4.0/index.rst @@ -74,6 +74,57 @@ to your liking. .. towncrier release notes start +What's new in Pylint 4.0.3? +--------------------------- +Release date: 2025-11-13 + + +False Positives Fixed +--------------------- + +- Add Enum dunder methods ``_generate_next_value_``, ``_missing_``, ``_numeric_repr_``, ``_add_alias_``, and ``_add_value_alias_`` to the list passed to ``--good-dunder-names``. + + Closes #10435 (`#10435 `_) + +- Fixed false positive for ``invalid-name`` with ``typing.Annotated``. + + Closes #10696 (`#10696 `_) + +- Fix false positive for ``f-string-without-interpolation`` with template strings + when using format spec. + + Closes #10702 (`#10702 `_) + +- Fix a false positive when an UPPER_CASED class attribute was raising an + ``invalid-name`` when typed with ``Final``. + + Closes #10711 (`#10711 `_) + +- Fix a false positive for ``unbalanced-tuple-unpacking`` when a tuple is assigned to a function call and the structure of the function's return value is ambiguous. + + Closes #10721 (`#10721 `_) + + + +Other Bug Fixes +--------------- + +- Make 'ignore' option work as expected again. + + Closes #10669 (`#10669 `_) + +- Fix crash for ``consider-using-assignment-expr`` when a variable annotation without assignment + is used as the ``if`` test expression. + + Closes #10707 (`#10707 `_) + +- Fix crash for ``prefer-typing-namedtuple`` and ``consider-math-not-float`` when + a ``slice`` object is called. + + Closes #10708 (`#10708 `_) + + + What's new in Pylint 4.0.2? -------------------------------- Release date: 2025-10-20 diff --git a/doc/whatsnew/fragments/10435.false_positive b/doc/whatsnew/fragments/10435.false_positive deleted file mode 100644 index 0ad1a29cb0..0000000000 --- a/doc/whatsnew/fragments/10435.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Add Enum dunder methods ``_generate_next_value_``, ``_missing_``, ``_numeric_repr_``, ``_add_alias_``, and ``_add_value_alias_`` to the list passed to ``--good-dunder-names``. - -Closes #10435 diff --git a/doc/whatsnew/fragments/10669.bugfix b/doc/whatsnew/fragments/10669.bugfix deleted file mode 100644 index 035d3389d8..0000000000 --- a/doc/whatsnew/fragments/10669.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Make 'ignore' option work as expected again. - -Closes #10669 diff --git a/doc/whatsnew/fragments/10696.false_positive b/doc/whatsnew/fragments/10696.false_positive deleted file mode 100644 index 9a341efe24..0000000000 --- a/doc/whatsnew/fragments/10696.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fixed false positive for ``invalid-name`` with ``typing.Annotated``. - -Closes #10696 diff --git a/doc/whatsnew/fragments/10702.false_positive b/doc/whatsnew/fragments/10702.false_positive deleted file mode 100644 index 301d691fae..0000000000 --- a/doc/whatsnew/fragments/10702.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Fix false positive for ``f-string-without-interpolation`` with template strings -when using format spec. - -Closes #10702 diff --git a/doc/whatsnew/fragments/10707.bugfix b/doc/whatsnew/fragments/10707.bugfix deleted file mode 100644 index cd82216b74..0000000000 --- a/doc/whatsnew/fragments/10707.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fix crash for ``consider-using-assignment-expr`` when a variable annotation without assignment -is used as the ``if`` test expression. - -Closes #10707 diff --git a/doc/whatsnew/fragments/10708.bugfix b/doc/whatsnew/fragments/10708.bugfix deleted file mode 100644 index 2a9b1a3793..0000000000 --- a/doc/whatsnew/fragments/10708.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fix crash for ``prefer-typing-namedtuple`` and ``consider-math-not-float`` when -a ``slice`` object is called. - -Closes #10708 diff --git a/doc/whatsnew/fragments/10711.false_positive b/doc/whatsnew/fragments/10711.false_positive deleted file mode 100644 index af4b822638..0000000000 --- a/doc/whatsnew/fragments/10711.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Fix a false positive when an UPPER_CASED class attribute was raising an -``invalid-name`` when typed with ``Final``. - -Closes #10711 diff --git a/doc/whatsnew/fragments/10721.false_positive b/doc/whatsnew/fragments/10721.false_positive deleted file mode 100644 index cb4fa3d485..0000000000 --- a/doc/whatsnew/fragments/10721.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive for ``unbalanced-tuple-unpacking`` when a tuple is assigned to a function call and the structure of the function's return value is ambiguous. - -Closes #10721 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 877091ee89..06357ecb23 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "4.0.2" +__version__ = "4.0.3" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index c1797cca75..a43bfecc24 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "4.0.2" +current = "4.0.3" regex = ''' ^(?P0|[1-9]\d*) \.