From 389e14c36819cb87190fd412d3f366a3283f0078 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Mon, 24 Apr 2023 20:17:48 +0200 Subject: Bump pylint to 2.17.3, update changelog (#8620) --- CONTRIBUTORS.txt | 4 +-- doc/whatsnew/2/2.17/index.rst | 58 ++++++++++++++++++++++++++++++ doc/whatsnew/fragments/3670.false_positive | 3 -- doc/whatsnew/fragments/7506.false_positive | 3 -- doc/whatsnew/fragments/8410.false_positive | 3 -- doc/whatsnew/fragments/8424.false_positive | 3 -- doc/whatsnew/fragments/8500.false_positive | 3 -- doc/whatsnew/fragments/8540.false_positive | 4 --- doc/whatsnew/fragments/8555.false_positive | 3 -- doc/whatsnew/fragments/8563.bugfix | 3 -- doc/whatsnew/fragments/8570.false_positive | 3 -- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- towncrier.toml | 2 +- 14 files changed, 63 insertions(+), 33 deletions(-) delete mode 100644 doc/whatsnew/fragments/3670.false_positive delete mode 100644 doc/whatsnew/fragments/7506.false_positive delete mode 100644 doc/whatsnew/fragments/8410.false_positive delete mode 100644 doc/whatsnew/fragments/8424.false_positive delete mode 100644 doc/whatsnew/fragments/8500.false_positive delete mode 100644 doc/whatsnew/fragments/8540.false_positive delete mode 100644 doc/whatsnew/fragments/8555.false_positive delete mode 100644 doc/whatsnew/fragments/8563.bugfix delete mode 100644 doc/whatsnew/fragments/8570.false_positive diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 59af3e059..2de0c8d4a 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -130,10 +130,10 @@ contributors: - Eli Fine (eli88fine): Fixed false positive duplicate code warning for lines with symbols only - Andrew Haigh (nelfin) - Émile Crater +- Yilei "Dolee" Yang - Pavel Roskin - David Gilman - へーさん -- Yilei "Dolee" Yang - Thomas Hisch - Marianna Polatoglou : minor contribution for wildcard import check - Manuel Vázquez Acosta @@ -206,6 +206,7 @@ contributors: - chohner - Tiago Honorato <61059243+tiagohonorato@users.noreply.github.com> - Steven M. Vascellaro +- Rogdham - Robin Tweedie <70587124+robin-wayve@users.noreply.github.com> - Roberto Leinardi : PyCharm plugin maintainer - Ricardo Gemignani @@ -254,7 +255,6 @@ contributors: - Scott Worley - Saugat Pachhai - Rémi Cardona -- Rogdham - Raphael Gaschignard - Ram Rachum (cool-RR) - Radostin Stoyanov diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index cd06bbc2e..974ebb501 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -29,6 +29,64 @@ so we find problems before the actual release. .. towncrier release notes start +What's new in Pylint 2.17.3? +---------------------------- +Release date: 2023-04-24 + + +False Positives Fixed +--------------------- + +- Fix `unused-argument` false positive when `__new__` does not use all the + arguments of `__init__`. + + Closes #3670 (`#3670 `_) + +- Fix ``unused-import`` false positive for usage of ``six.with_metaclass``. + + Closes #7506 (`#7506 `_) + +- `logging-not-lazy` is not longer emitted for explicitly concatenated string + arguments. + + Closes #8410 (`#8410 `_) + +- Fix false positive for isinstance-second-argument-not-valid-type when union + types contains None. + + Closes #8424 (`#8424 `_) + +- Fixed `unused-import` so that it observes the `dummy-variables-rgx` option. + + Closes #8500 (`#8500 `_) + +- `Union` typed variables without assignment are no longer treated as + `TypeAlias`. + + Closes #8540 (`#8540 `_) + +- Fix false positive for ``positional-only-arguments-expected`` when a function + contains both a positional-only parameter that has a default value, and + ``**kwargs``. + + Closes #8555 (`#8555 `_) + +- Fix false positive for ``keyword-arg-before-vararg`` when a positional-only + parameter with a default value precedes ``*args``. + + Closes #8570 (`#8570 `_) + + + +Other Bug Fixes +--------------- + +- Improve output of ``consider-using-generator`` message for ``min()` calls + with ``default`` keyword. + + Closes #8563 (`#8563 `_) + + What's new in Pylint 2.17.2? ---------------------------- Release date: 2023-04-03 diff --git a/doc/whatsnew/fragments/3670.false_positive b/doc/whatsnew/fragments/3670.false_positive deleted file mode 100644 index 562a41de2..000000000 --- a/doc/whatsnew/fragments/3670.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix `unused-argument` false positive when `__new__` does not use all the arguments of `__init__`. - -Closes #3670 diff --git a/doc/whatsnew/fragments/7506.false_positive b/doc/whatsnew/fragments/7506.false_positive deleted file mode 100644 index c6424e1f2..000000000 --- a/doc/whatsnew/fragments/7506.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix ``unused-import`` false positive for usage of ``six.with_metaclass``. - -Closes #7506 diff --git a/doc/whatsnew/fragments/8410.false_positive b/doc/whatsnew/fragments/8410.false_positive deleted file mode 100644 index 264542a7d..000000000 --- a/doc/whatsnew/fragments/8410.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -`logging-not-lazy` is not longer emitted for explicitly concatenated string arguments. - -Closes #8410 diff --git a/doc/whatsnew/fragments/8424.false_positive b/doc/whatsnew/fragments/8424.false_positive deleted file mode 100644 index 22dc8b844..000000000 --- a/doc/whatsnew/fragments/8424.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positive for isinstance-second-argument-not-valid-type when union types contains None. - -Closes #8424 diff --git a/doc/whatsnew/fragments/8500.false_positive b/doc/whatsnew/fragments/8500.false_positive deleted file mode 100644 index ced61766a..000000000 --- a/doc/whatsnew/fragments/8500.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fixed `unused-import` so that it observes the `dummy-variables-rgx` option. - -Closes #8500 diff --git a/doc/whatsnew/fragments/8540.false_positive b/doc/whatsnew/fragments/8540.false_positive deleted file mode 100644 index 543913637..000000000 --- a/doc/whatsnew/fragments/8540.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -`Union` typed variables without assignment are no longer treated as -`TypeAlias`. - -Closes #8540 diff --git a/doc/whatsnew/fragments/8555.false_positive b/doc/whatsnew/fragments/8555.false_positive deleted file mode 100644 index 157486b39..000000000 --- a/doc/whatsnew/fragments/8555.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positive for ``positional-only-arguments-expected`` when a function contains both a positional-only parameter that has a default value, and ``**kwargs``. - -Closes #8555 diff --git a/doc/whatsnew/fragments/8563.bugfix b/doc/whatsnew/fragments/8563.bugfix deleted file mode 100644 index 3c9d38b1c..000000000 --- a/doc/whatsnew/fragments/8563.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Improve output of ``consider-using-generator`` message for ``min()` calls with ``default`` keyword. - -Closes #8563 diff --git a/doc/whatsnew/fragments/8570.false_positive b/doc/whatsnew/fragments/8570.false_positive deleted file mode 100644 index fec3a855e..000000000 --- a/doc/whatsnew/fragments/8570.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. - -Closes #8570 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index beebd2492..a140a9791 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ It's updated via tbump, do not modify. from __future__ import annotations -__version__ = "2.17.2" +__version__ = "2.17.3" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 1f6594b2e..62cfd5498 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.17.2" +current = "2.17.3" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index 35ce27243..fce326ad6 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "2.17.2" +version = "2.17.3" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/2/2.17/index.rst" template = "doc/whatsnew/fragments/_template.rst" -- cgit v1.2.1