Skip to content

Commit b9c1ab3

Browse files
Bump pylint to 2.17.1, update changelog (#8482)
1 parent 7d26dcf commit b9c1ab3

File tree

9 files changed

+55
-28
lines changed

9 files changed

+55
-28
lines changed

doc/whatsnew/2/2.17/index.rst

+52
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,58 @@ so we find problems before the actual release.
2929

3030
.. towncrier release notes start
3131
32+
What's new in Pylint 2.17.1?
33+
----------------------------
34+
Release date: 2023-03-22
35+
36+
37+
False Positives Fixed
38+
---------------------
39+
40+
- Adds ``asyncSetUp`` to the default ``defining-attr-methods`` list to silence
41+
``attribute-defined-outside-init`` warning when using
42+
``unittest.IsolatedAsyncioTestCase``.
43+
44+
Refs #8403 (`#8403 <https://github.com/PyCQA/pylint/issues/8403>`_)
45+
46+
47+
48+
Other Bug Fixes
49+
---------------
50+
51+
- ``--clear-cache-post-run`` now also clears LRU caches for pylint utilities
52+
holding references to AST nodes.
53+
54+
Closes #8361 (`#8361 <https://github.com/PyCQA/pylint/issues/8361>`_)
55+
56+
- Fix a crash when ``TYPE_CHECKING`` is used without importing it.
57+
58+
Closes #8434 (`#8434 <https://github.com/PyCQA/pylint/issues/8434>`_)
59+
60+
- Fix a regression of ``preferred-modules`` where a partial match was used
61+
instead of the required full match.
62+
63+
Closes #8453 (`#8453 <https://github.com/PyCQA/pylint/issues/8453>`_)
64+
65+
66+
67+
Internal Changes
68+
----------------
69+
70+
- The following utilities are deprecated in favor of the more robust
71+
``in_type_checking_block``
72+
and will be removed in pylint 3.0:
73+
74+
- ``is_node_in_guarded_import_block``
75+
- ``is_node_in_typing_guarded_import_block``
76+
- ``is_typing_guard``
77+
78+
``is_sys_guard`` is still available, which was part of
79+
``is_node_in_guarded_import_block``.
80+
81+
Refs #8433 (`#8433 <https://github.com/PyCQA/pylint/issues/8433>`_)
82+
83+
3284
What's new in Pylint 2.17.0?
3385
----------------------------
3486
Release date: 2023-03-08

doc/whatsnew/fragments/8361.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/8403.false_positive

-5
This file was deleted.

doc/whatsnew/fragments/8433.internal

-10
This file was deleted.

doc/whatsnew/fragments/8434.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/8453.bugfix

-3
This file was deleted.

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
__version__ = "2.17.0"
12+
__version__ = "2.17.1"
1313

1414

1515
def get_numversion_from_version(v: str) -> tuple[int, int, int]:

tbump.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github_url = "https://github.com/PyCQA/pylint"
22

33
[version]
4-
current = "2.17.0"
4+
current = "2.17.1"
55
regex = '''
66
^(?P<major>0|[1-9]\d*)
77
\.

towncrier.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.towncrier]
2-
version = "2.17.0"
2+
version = "2.17.1"
33
directory = "doc/whatsnew/fragments"
44
filename = "doc/whatsnew/2/2.17/index.rst"
55
template = "doc/whatsnew/fragments/_template.rst"

0 commit comments

Comments
 (0)