Skip to content

Commit 0006ae9

Browse files
Bump pylint to 2.16.2, update changelog (#8276)
1 parent c8d3fdd commit 0006ae9

11 files changed

+57
-28
lines changed

doc/whatsnew/2/2.16/index.rst

+54
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,60 @@ Last but not least @clavedeluna and @nickdrozd became triagers, welcome to the t
3232

3333
.. towncrier release notes start
3434
35+
What's new in Pylint 2.16.2?
36+
----------------------------
37+
Release date: 2023-02-13
38+
39+
40+
New Features
41+
------------
42+
43+
- Add `--version` option to `pyreverse`.
44+
45+
Refs #7851 (`#7851 <https://github.com/PyCQA/pylint/issues/7851>`_)
46+
47+
48+
49+
False Positives Fixed
50+
---------------------
51+
52+
- Fix false positive for ``used-before-assignment`` when
53+
``typing.TYPE_CHECKING`` is used with if/elif/else blocks.
54+
55+
Closes #7574 (`#7574 <https://github.com/PyCQA/pylint/issues/7574>`_)
56+
57+
- Fix false positive for ``used-before-assignment`` for named expressions
58+
appearing after the first element in a list, tuple, or set.
59+
60+
Closes #8252 (`#8252 <https://github.com/PyCQA/pylint/issues/8252>`_)
61+
62+
63+
64+
Other Bug Fixes
65+
---------------
66+
67+
- Fix ``used-before-assignment`` false positive when the walrus operator
68+
is used with a ternary operator in dictionary key/value initialization.
69+
70+
Closes #8125 (`#8125 <https://github.com/PyCQA/pylint/issues/8125>`_)
71+
72+
- Fix ``no-name-in-module`` false positive raised when a package defines a
73+
variable with the
74+
same name as one of its submodules.
75+
76+
Closes #8148 (`#8148 <https://github.com/PyCQA/pylint/issues/8148>`_)
77+
78+
- Fix ``nested-min-max`` suggestion message to indicate it's possible to splat
79+
iterable objects.
80+
81+
Closes #8168 (`#8168 <https://github.com/PyCQA/pylint/issues/8168>`_)
82+
83+
- Fix a crash happening when a class attribute was negated in the start
84+
argument of an enumerate.
85+
86+
Closes #8207 (`#8207 <https://github.com/PyCQA/pylint/issues/8207>`_)
87+
88+
3589
What's new in Pylint 2.16.1?
3690
----------------------------
3791
Release date: 2023-02-02

doc/whatsnew/fragments/7574.false_positive

-4
This file was deleted.

doc/whatsnew/fragments/7851.feature

-3
This file was deleted.

doc/whatsnew/fragments/8125.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/8148.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/8168.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/8207.bugfix

-3
This file was deleted.

doc/whatsnew/fragments/8252.false_positive

-4
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.16.1"
12+
__version__ = "2.16.2"
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.16.1"
4+
current = "2.16.2"
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.16.1"
2+
version = "2.16.2"
33
directory = "doc/whatsnew/fragments"
44
filename = "doc/whatsnew/2/2.16/index.rst"
55
template = "doc/whatsnew/fragments/_template.rst"

0 commit comments

Comments
 (0)