From 425ad66da9467bac9074de3f2294f7851cb3320b Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Tue, 25 Jun 2024 21:14:33 +0200 Subject: [PATCH] Bump pylint to 3.2.4, update changelog (#9746) Co-authored-by: Jacob Walls --- doc/whatsnew/3/3.2/index.rst | 35 ++++++++++++++++++++++ doc/whatsnew/fragments/8866.bugfix | 3 -- doc/whatsnew/fragments/9078.bugfix | 4 --- doc/whatsnew/fragments/9343.bugfix | 4 --- doc/whatsnew/fragments/9674.false_positive | 5 ---- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- towncrier.toml | 2 +- 8 files changed, 38 insertions(+), 19 deletions(-) delete mode 100644 doc/whatsnew/fragments/8866.bugfix delete mode 100644 doc/whatsnew/fragments/9078.bugfix delete mode 100644 doc/whatsnew/fragments/9343.bugfix delete mode 100644 doc/whatsnew/fragments/9674.false_positive diff --git a/doc/whatsnew/3/3.2/index.rst b/doc/whatsnew/3/3.2/index.rst index e8ee047d15..a894c02b72 100644 --- a/doc/whatsnew/3/3.2/index.rst +++ b/doc/whatsnew/3/3.2/index.rst @@ -14,6 +14,41 @@ Summary -- Release highlights .. towncrier release notes start +What's new in Pylint 3.2.4? +--------------------------- +Release date: 2024-06-25 + + +False Positives Fixed +--------------------- + +- Prevent emitting ``possibly-used-before-assignment`` when relying on names + only potentially not defined in conditional blocks guarded by functions + annotated with ``typing.Never`` or ``typing.NoReturn``. + + Closes #9674 (`#9674 `_) + + + +Other Bug Fixes +--------------- + +- Fixed a crash when the lineno of a variable used as an annotation wasn't available for ``undefined-variable``. + + Closes #8866 (`#8866 `_) + +- Fixed a crash when the ``start`` value in an ``enumerate`` was non-constant and impossible to infer + (like in``enumerate(apples, start=int(random_apple_index)``) for ``unnecessary-list-index-lookup``. + + Closes #9078 (`#9078 `_) + +- Fixed a crash in ``symilar`` when the ``-d`` or ``-i`` short option were not properly recognized. + It's still impossible to do ``-d=1`` (you must do ``-d 1``). + + Closes #9343 (`#9343 `_) + + + What's new in Pylint 3.2.3? --------------------------- Release date: 2024-06-06 diff --git a/doc/whatsnew/fragments/8866.bugfix b/doc/whatsnew/fragments/8866.bugfix deleted file mode 100644 index 2eba31dccb..0000000000 --- a/doc/whatsnew/fragments/8866.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fixed a crash when the lineno of a variable used as an annotation wasn't available for ``undefined-variable``. - -Closes #8866 diff --git a/doc/whatsnew/fragments/9078.bugfix b/doc/whatsnew/fragments/9078.bugfix deleted file mode 100644 index 2e48abc887..0000000000 --- a/doc/whatsnew/fragments/9078.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fixed a crash when the ``start`` value in an ``enumerate`` was non-constant and impossible to infer -(like in``enumerate(apples, start=int(random_apple_index)``) for ``unnecessary-list-index-lookup``. - -Closes #9078 diff --git a/doc/whatsnew/fragments/9343.bugfix b/doc/whatsnew/fragments/9343.bugfix deleted file mode 100644 index 0a3a620809..0000000000 --- a/doc/whatsnew/fragments/9343.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fixed a crash in ``symilar`` when the ``-d`` or ``-i`` short option were not properly recognized. -It's still impossible to do ``-d=1`` (you must do ``-d 1``). - -Closes #9343 diff --git a/doc/whatsnew/fragments/9674.false_positive b/doc/whatsnew/fragments/9674.false_positive deleted file mode 100644 index d1e3fb6814..0000000000 --- a/doc/whatsnew/fragments/9674.false_positive +++ /dev/null @@ -1,5 +0,0 @@ -Prevent emitting ``possibly-used-before-assignment`` when relying on names -only potentially not defined in conditional blocks guarded by functions -annotated with ``typing.Never`` or ``typing.NoReturn``. - -Closes #9674 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index e57a71404f..ed35957ca9 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "3.2.3" +__version__ = "3.2.4" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 1a1fbaec5c..422bb14b01 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "3.2.3" +current = "3.2.4" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index a25f83a95d..2d790b3848 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "3.2.3" +version = "3.2.4" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/3/3.2/index.rst" template = "doc/whatsnew/fragments/_template.rst"