diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 2de0c8d4a8..ed2b5aabcb 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -547,6 +547,7 @@ contributors: - Arun Persaud - Arthur Lutz - Antonio Ossa +- Antonio - Anthony VEREZ - Anthony Tan - Anthony Foglia (Google): Added simple string slots check. diff --git a/doc/user_guide/configuration/all-options.rst b/doc/user_guide/configuration/all-options.rst index ecdfc9ef51..2915a8fe1f 100644 --- a/doc/user_guide/configuration/all-options.rst +++ b/doc/user_guide/configuration/all-options.rst @@ -233,7 +233,7 @@ Standard Checkers confidence = ["HIGH", "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFINED"] - disable = ["raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "useless-suppression", "deprecated-pragma", "use-symbolic-message-instead", "consider-using-augmented-assign"] + disable = ["consider-using-augmented-assign"] enable = [] diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index b8f81068e7..345fb0a43b 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -29,6 +29,81 @@ so we find problems before the actual release. .. towncrier release notes start +What's new in Pylint 2.17.5? +---------------------------- +Release date: 2023-07-26 + + +False Positives Fixed +--------------------- + +- Fix a false positive for ``unused-variable`` when there is an import in a + ``if TYPE_CHECKING:`` block and ``allow-global-unused-variables`` is set to + ``no`` in the configuration. + + Closes #8696 (`#8696 `_) + +- Fix false positives generated when supplying arguments as ``**kwargs`` to IO + calls like open(). + + Closes #8719 (`#8719 `_) + +- Fix a false positive where pylint was ignoring method calls annotated as + ``NoReturn`` during the ``inconsistent-return-statements`` check. + + Closes #8747 (`#8747 `_) + +- Exempt parents with only type annotations from the ``invalid-enum-extension`` + message. + + Closes #8830 (`#8830 `_) + + + +Other Bug Fixes +--------------- + +- Fixed crash when a call to ``super()`` was placed after an operator (e.g. + ``not``). + + Closes #8554 (`#8554 `_) + +- Fix crash for ``modified-while-iterating`` checker when deleting + members of a dict returned from a call. + + Closes #8598 (`#8598 `_) + +- Fix crash in ``invalid-metaclass`` check when a metaclass had duplicate + bases. + + Closes #8698 (`#8698 `_) + +- Avoid ``consider-using-f-string`` on modulos with brackets in template. + + Closes #8720. (`#8720 `_) + +- Fix a crash when ``__all__`` exists but cannot be inferred. + + Closes #8740 (`#8740 `_) + +- Fix crash when a variable is assigned to a class attribute of identical name. + + Closes #8754 (`#8754 `_) + +- Fixed a crash when calling ``copy.copy()`` without arguments. + + Closes #8774 (`#8774 `_) + + + +Other Changes +------------- + +- Fix a crash when a ``nonlocal`` is defined at module-level. + + Closes #8735 (`#8735 `_) + + What's new in Pylint 2.17.4? ---------------------------- Release date: 2023-05-06 diff --git a/doc/whatsnew/fragments/8554.bugfix b/doc/whatsnew/fragments/8554.bugfix deleted file mode 100644 index 5bb60ae157..0000000000 --- a/doc/whatsnew/fragments/8554.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fixed crash when a call to ``super()`` was placed after an operator (e.g. ``not``). - -Closes #8554 diff --git a/doc/whatsnew/fragments/8598.bugfix b/doc/whatsnew/fragments/8598.bugfix deleted file mode 100644 index e1961f709c..0000000000 --- a/doc/whatsnew/fragments/8598.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -Fix crash for ``modified-while-iterating`` checker when deleting -members of a dict returned from a call. - -Closes #8598 diff --git a/doc/whatsnew/fragments/8696.false_positive b/doc/whatsnew/fragments/8696.false_positive deleted file mode 100644 index b25d1dad1f..0000000000 --- a/doc/whatsnew/fragments/8696.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive for ``unused-variable`` when there is an import in a ``if TYPE_CHECKING:`` block and ``allow-global-unused-variables`` is set to ``no`` in the configuration. - -Closes #8696 diff --git a/doc/whatsnew/fragments/8698.bugfix b/doc/whatsnew/fragments/8698.bugfix deleted file mode 100644 index 278a14fba1..0000000000 --- a/doc/whatsnew/fragments/8698.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix crash in ``invalid-metaclass`` check when a metaclass had duplicate bases. - -Closes #8698 diff --git a/doc/whatsnew/fragments/8719.false_positive b/doc/whatsnew/fragments/8719.false_positive deleted file mode 100644 index 9017649912..0000000000 --- a/doc/whatsnew/fragments/8719.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positives generated when supplying arguments as ``**kwargs`` to IO calls like open(). - -Closes #8719 diff --git a/doc/whatsnew/fragments/8720.bugfix b/doc/whatsnew/fragments/8720.bugfix deleted file mode 100644 index 2e024eed15..0000000000 --- a/doc/whatsnew/fragments/8720.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Avoid ``consider-using-f-string`` on modulos with brackets in template. - -Closes #8720. diff --git a/doc/whatsnew/fragments/8735.other b/doc/whatsnew/fragments/8735.other deleted file mode 100644 index 8d8a3109f4..0000000000 --- a/doc/whatsnew/fragments/8735.other +++ /dev/null @@ -1,3 +0,0 @@ -Fix a crash when a ``nonlocal`` is defined at module-level. - -Closes #8735 diff --git a/doc/whatsnew/fragments/8740.bugfix b/doc/whatsnew/fragments/8740.bugfix deleted file mode 100644 index dfa0d24929..0000000000 --- a/doc/whatsnew/fragments/8740.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a crash when ``__all__`` exists but cannot be inferred. - -Closes #8740 diff --git a/doc/whatsnew/fragments/8747.false_positive b/doc/whatsnew/fragments/8747.false_positive deleted file mode 100644 index f26448f29f..0000000000 --- a/doc/whatsnew/fragments/8747.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive where pylint was ignoring method calls annotated as ``NoReturn`` during the ``inconsistent-return-statements`` check. - -Closes #8747 diff --git a/doc/whatsnew/fragments/8754.bugfix b/doc/whatsnew/fragments/8754.bugfix deleted file mode 100644 index 513ce7db15..0000000000 --- a/doc/whatsnew/fragments/8754.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix crash when a variable is assigned to a class attribute of identical name. - -Closes #8754 diff --git a/doc/whatsnew/fragments/8774.bugfix b/doc/whatsnew/fragments/8774.bugfix deleted file mode 100644 index 3f8f7fb5b1..0000000000 --- a/doc/whatsnew/fragments/8774.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fixed a crash when calling ``copy.copy()`` without arguments. - -Closes #8774 diff --git a/doc/whatsnew/fragments/8830.false_positive b/doc/whatsnew/fragments/8830.false_positive deleted file mode 100644 index 1d7edeeb4f..0000000000 --- a/doc/whatsnew/fragments/8830.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Exempt parents with only type annotations from the ``invalid-enum-extension`` -message. - -Closes #8830 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index ca39261bae..052a92c3a2 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "2.17.4" +__version__ = "2.17.5" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index 82456ef1f4..ca1a2e9cd9 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "2.17.4" +current = "2.17.5" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index b9c47fa8d0..d12644bfdc 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "2.17.4" +version = "2.17.5" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/2/2.17/index.rst" template = "doc/whatsnew/fragments/_template.rst"