diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-03-22 17:30:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-22 17:30:33 +0100 |
commit | b9c1ab3cd5323f5cb305a12c9e105102e4200ead (patch) | |
tree | 5e40edd5a9d366ee6907fdf403b8570eebea53e1 | |
parent | 7d26dcf3ee9a0c033f1529d09fe1f600b527c1cc (diff) | |
download | pylint-git-2.17.1.tar.gz |
Bump pylint to 2.17.1, update changelog (#8482)v2.17.1
-rw-r--r-- | doc/whatsnew/2/2.17/index.rst | 52 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8361.bugfix | 4 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8403.false_positive | 5 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8433.internal | 10 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8434.bugfix | 3 | ||||
-rw-r--r-- | doc/whatsnew/fragments/8453.bugfix | 3 | ||||
-rw-r--r-- | pylint/__pkginfo__.py | 2 | ||||
-rw-r--r-- | tbump.toml | 2 | ||||
-rw-r--r-- | towncrier.toml | 2 |
9 files changed, 55 insertions, 28 deletions
diff --git a/doc/whatsnew/2/2.17/index.rst b/doc/whatsnew/2/2.17/index.rst index 36b443386..b3f4b6175 100644 --- a/doc/whatsnew/2/2.17/index.rst +++ b/doc/whatsnew/2/2.17/index.rst @@ -29,6 +29,58 @@ so we find problems before the actual release. .. towncrier release notes start +What's new in Pylint 2.17.1? +---------------------------- +Release date: 2023-03-22 + + +False Positives Fixed +--------------------- + +- Adds ``asyncSetUp`` to the default ``defining-attr-methods`` list to silence + ``attribute-defined-outside-init`` warning when using + ``unittest.IsolatedAsyncioTestCase``. + + Refs #8403 (`#8403 <https://github.com/PyCQA/pylint/issues/8403>`_) + + + +Other Bug Fixes +--------------- + +- ``--clear-cache-post-run`` now also clears LRU caches for pylint utilities + holding references to AST nodes. + + Closes #8361 (`#8361 <https://github.com/PyCQA/pylint/issues/8361>`_) + +- Fix a crash when ``TYPE_CHECKING`` is used without importing it. + + Closes #8434 (`#8434 <https://github.com/PyCQA/pylint/issues/8434>`_) + +- Fix a regression of ``preferred-modules`` where a partial match was used + instead of the required full match. + + Closes #8453 (`#8453 <https://github.com/PyCQA/pylint/issues/8453>`_) + + + +Internal Changes +---------------- + +- The following utilities are deprecated in favor of the more robust + ``in_type_checking_block`` + and will be removed in pylint 3.0: + + - ``is_node_in_guarded_import_block`` + - ``is_node_in_typing_guarded_import_block`` + - ``is_typing_guard`` + + ``is_sys_guard`` is still available, which was part of + ``is_node_in_guarded_import_block``. + + Refs #8433 (`#8433 <https://github.com/PyCQA/pylint/issues/8433>`_) + + What's new in Pylint 2.17.0? ---------------------------- Release date: 2023-03-08 diff --git a/doc/whatsnew/fragments/8361.bugfix b/doc/whatsnew/fragments/8361.bugfix deleted file mode 100644 index 0f2b56707..000000000 --- a/doc/whatsnew/fragments/8361.bugfix +++ /dev/null @@ -1,4 +0,0 @@ -``--clear-cache-post-run`` now also clears LRU caches for pylint utilities -holding references to AST nodes. - -Closes #8361 diff --git a/doc/whatsnew/fragments/8403.false_positive b/doc/whatsnew/fragments/8403.false_positive deleted file mode 100644 index bfa34d17d..000000000 --- a/doc/whatsnew/fragments/8403.false_positive +++ /dev/null @@ -1,5 +0,0 @@ -Adds ``asyncSetUp`` to the default ``defining-attr-methods`` list to silence -``attribute-defined-outside-init`` warning when using -``unittest.IsolatedAsyncioTestCase``. - -Refs #8403 diff --git a/doc/whatsnew/fragments/8433.internal b/doc/whatsnew/fragments/8433.internal deleted file mode 100644 index 4bc20c493..000000000 --- a/doc/whatsnew/fragments/8433.internal +++ /dev/null @@ -1,10 +0,0 @@ -The following utilities are deprecated in favor of the more robust ``in_type_checking_block`` -and will be removed in pylint 3.0: - - - ``is_node_in_guarded_import_block`` - - ``is_node_in_typing_guarded_import_block`` - - ``is_typing_guard`` - -``is_sys_guard`` is still available, which was part of ``is_node_in_guarded_import_block``. - -Refs #8433 diff --git a/doc/whatsnew/fragments/8434.bugfix b/doc/whatsnew/fragments/8434.bugfix deleted file mode 100644 index b5a8bddcb..000000000 --- a/doc/whatsnew/fragments/8434.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a crash when ``TYPE_CHECKING`` is used without importing it. - -Closes #8434 diff --git a/doc/whatsnew/fragments/8453.bugfix b/doc/whatsnew/fragments/8453.bugfix deleted file mode 100644 index 6bec2b0b9..000000000 --- a/doc/whatsnew/fragments/8453.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a regression of ``preferred-modules`` where a partial match was used instead of the required full match. - -Closes #8453 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 4a6eb6090..897c373b9 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.0" +__version__ = "2.17.1" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index a00de0224..063a79c0e 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/PyCQA/pylint" [version] -current = "2.17.0" +current = "2.17.1" regex = ''' ^(?P<major>0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index a029888f7..b8c00a8ff 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "2.17.0" +version = "2.17.1" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/2/2.17/index.rst" template = "doc/whatsnew/fragments/_template.rst" |