From 94eed8181960ec1012eb4f4c314db3e226749f23 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Mon, 13 May 2024 10:30:18 -0400 Subject: [PATCH] Bump pylint to 3.1.1, update changelog (#9615) --- doc/whatsnew/3/3.1/index.rst | 23 ++++++++++++++++++++++ doc/whatsnew/fragments/9345.false_positive | 4 ---- doc/whatsnew/fragments/9531.false_positive | 3 --- doc/whatsnew/fragments/9554.false_positive | 3 --- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- towncrier.toml | 2 +- 7 files changed, 26 insertions(+), 13 deletions(-) delete mode 100644 doc/whatsnew/fragments/9345.false_positive delete mode 100644 doc/whatsnew/fragments/9531.false_positive delete mode 100644 doc/whatsnew/fragments/9554.false_positive diff --git a/doc/whatsnew/3/3.1/index.rst b/doc/whatsnew/3/3.1/index.rst index 2580c7377e..fe3232dbf2 100644 --- a/doc/whatsnew/3/3.1/index.rst +++ b/doc/whatsnew/3/3.1/index.rst @@ -17,6 +17,29 @@ and a smattering of bug fixes. .. towncrier release notes start +What's new in Pylint 3.1.1? +--------------------------- +Release date: 2024-05-13 + + +False Positives Fixed +--------------------- + +- Treat `attrs.define` and `attrs.frozen` as dataclass decorators in + `too-few-public-methods` check. + + Closes #9345 (`#9345 `_) + +- Fix a false positive with ``singledispatchmethod-function`` when a method is decorated with both ``functools.singledispatchmethod`` and ``staticmethod``. + + Closes #9531 (`#9531 `_) + +- Fix a false positive for ``consider-using-dict-items`` when iterating using ``keys()`` and then deleting an item using the key as a lookup. + + Closes #9554 (`#9554 `_) + + + What's new in Pylint 3.1.0? --------------------------- Release date: 2024-02-25 diff --git a/doc/whatsnew/fragments/9345.false_positive b/doc/whatsnew/fragments/9345.false_positive deleted file mode 100644 index af8a3866b3..0000000000 --- a/doc/whatsnew/fragments/9345.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Treat `attrs.define` and `attrs.frozen` as dataclass decorators in -`too-few-public-methods` check. - -Closes #9345 diff --git a/doc/whatsnew/fragments/9531.false_positive b/doc/whatsnew/fragments/9531.false_positive deleted file mode 100644 index b776628397..0000000000 --- a/doc/whatsnew/fragments/9531.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive with ``singledispatchmethod-function`` when a method is decorated with both ``functools.singledispatchmethod`` and ``staticmethod``. - -Closes #9531 diff --git a/doc/whatsnew/fragments/9554.false_positive b/doc/whatsnew/fragments/9554.false_positive deleted file mode 100644 index c8c8d71ac8..0000000000 --- a/doc/whatsnew/fragments/9554.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive for ``consider-using-dict-items`` when iterating using ``keys()`` and then deleting an item using the key as a lookup. - -Closes #9554 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 06884a7f1e..39cdc1aa4d 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "3.1.0" +__version__ = "3.1.1" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index a12e0ef93b..dd7845ab61 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "3.1.0" +current = "3.1.1" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index 08a78d762c..5667b2983d 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "3.1.0" +version = "3.1.1" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/3/3.1/index.rst" template = "doc/whatsnew/fragments/_template.rst"