diff --git a/doc/whatsnew/3/3.0/index.rst b/doc/whatsnew/3/3.0/index.rst index 3730d4857b..bb7c091107 100644 --- a/doc/whatsnew/3/3.0/index.rst +++ b/doc/whatsnew/3/3.0/index.rst @@ -65,6 +65,58 @@ easier to parse and provides more info, here's a sample output. .. towncrier release notes start +What's new in Pylint 3.0.3? +--------------------------- +Release date: 2023-12-11 + + +False Positives Fixed +--------------------- + +- Fixed false positive for ``unnecessary-lambda`` when the call has keyword arguments but not the lambda. + + Closes #9148 (`#9148 `_) + +- Fixed incorrect suggestion for shallow copy in unnecessary-comprehension + + Example of the suggestion: + #pylint: disable=missing-module-docstring + a = [1, 2, 3] + b = [x for x in a] + b[0] = 0 + print(a) # [1, 2, 3] + + After changing b = [x for x in a] to b = a based on the suggestion, the script now prints [0, 2, 3]. The correct suggestion should be use list(a) to preserve the original behavior. + + Closes #9172 (`#9172 `_) + +- Fix false positives for ``undefined-variable`` and ``unused-argument`` for + classes and functions using Python 3.12 generic type syntax. + + Closes #9193 (`#9193 `_) + +- Fixed ``pointless-string-statement`` false positive for docstrings + on Python 3.12 type aliases. + + Closes #9268 (`#9268 `_) + +- Fix false positive for ``invalid-exception-operation`` when concatenating tuples + of exception types. + + Closes #9288 (`#9288 `_) + + + +Other Bug Fixes +--------------- + +- Fix a bug where pylint was unable to walk recursively through a directory if the + directory has an `__init__.py` file. + + Closes #9210 (`#9210 `_) + + + What's new in Pylint 3.0.2? --------------------------- Release date: 2023-10-22 diff --git a/doc/whatsnew/fragments/9148.false_positive b/doc/whatsnew/fragments/9148.false_positive deleted file mode 100644 index 647deb103e..0000000000 --- a/doc/whatsnew/fragments/9148.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fixed false positive for ``unnecessary-lambda`` when the call has keyword arguments but not the lambda. - -Closes #9148 diff --git a/doc/whatsnew/fragments/9172.false_positive b/doc/whatsnew/fragments/9172.false_positive deleted file mode 100644 index 43884402cd..0000000000 --- a/doc/whatsnew/fragments/9172.false_positive +++ /dev/null @@ -1,12 +0,0 @@ -Fixed incorrect suggestion for shallow copy in unnecessary-comprehension - -Example of the suggestion: -#pylint: disable=missing-module-docstring -a = [1, 2, 3] -b = [x for x in a] -b[0] = 0 -print(a) # [1, 2, 3] - -After changing b = [x for x in a] to b = a based on the suggestion, the script now prints [0, 2, 3]. The correct suggestion should be use list(a) to preserve the original behavior. - -Closes #9172 diff --git a/doc/whatsnew/fragments/9193.false_positive b/doc/whatsnew/fragments/9193.false_positive deleted file mode 100644 index 39dc70b81d..0000000000 --- a/doc/whatsnew/fragments/9193.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Fix false positives for ``undefined-variable`` and ``unused-argument`` for -classes and functions using Python 3.12 generic type syntax. - -Closes #9193 diff --git a/doc/whatsnew/fragments/9210.bugfix b/doc/whatsnew/fragments/9210.bugfix deleted file mode 100644 index c1d0835712..0000000000 --- a/doc/whatsnew/fragments/9210.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fix a bug where pylint was unable to walk recursively through a directory if the -directory has an `__init__.py` file. - -Closes #9210 diff --git a/doc/whatsnew/fragments/9268.false_positive b/doc/whatsnew/fragments/9268.false_positive deleted file mode 100644 index f360ea204e..0000000000 --- a/doc/whatsnew/fragments/9268.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Fixed ``pointless-string-statement`` false positive for docstrings -on Python 3.12 type aliases. - -Closes #9268 diff --git a/doc/whatsnew/fragments/9288.false_positive b/doc/whatsnew/fragments/9288.false_positive deleted file mode 100644 index 470c308c69..0000000000 --- a/doc/whatsnew/fragments/9288.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Fix false positive for ``invalid-exception-operation`` when concatenating tuples -of exception types. - -Closes #9288 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 24c1c50518..521ffd04cd 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "3.0.2" +__version__ = "3.0.3" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 9f6f8c881d..b7db1431f4 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "3.0.2" +current = "3.0.3" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index dec869630d..46ceaf08c2 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "3.0.2" +version = "3.0.3" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/3/3.0/index.rst" template = "doc/whatsnew/fragments/_template.rst"