Skip to content

Commit

Permalink
Bump pylint to 2.17.1, update changelog (#8482)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas authored Mar 22, 2023
1 parent 7d26dcf commit b9c1ab3
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 28 deletions.
52 changes: 52 additions & 0 deletions doc/whatsnew/2/2.17/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/8361.bugfix

This file was deleted.

5 changes: 0 additions & 5 deletions doc/whatsnew/fragments/8403.false_positive

This file was deleted.

10 changes: 0 additions & 10 deletions doc/whatsnew/fragments/8433.internal

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/8434.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/8453.bugfix

This file was deleted.

2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

__version__ = "2.17.0"
__version__ = "2.17.1"


def get_numversion_from_version(v: str) -> tuple[int, int, int]:
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -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*)
\.
Expand Down
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit b9c1ab3

Please sign in to comment.