Skip to content

Commit 9223172

Browse files
Bump pylint to 3.2.1, update changelog
1 parent 926547b commit 9223172

12 files changed

+68
-40
lines changed

doc/whatsnew/3/3.2/index.rst

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,71 @@ Summary -- Release highlights
1414

1515
.. towncrier release notes start
1616
17+
What's new in Pylint 3.2.1?
18+
---------------------------
19+
Release date: 2024-05-18
20+
21+
22+
False Positives Fixed
23+
---------------------
24+
25+
- Exclude if/else branches containing terminating functions (e.g. `sys.exit()`)
26+
from `possibly-used-before-assignment` checks.
27+
28+
Closes #9627 (`#9627 <https://github.com/pylint-dev/pylint/issues/9627>`_)
29+
30+
- Don't emit ``typevar-name-incorrect-variance`` warnings for PEP 695 style TypeVars.
31+
The variance is inferred automatically by the type checker.
32+
Adding ``_co`` or ``_contra`` suffix can help to reason about TypeVar.
33+
34+
Refs #9638 (`#9638 <https://github.com/pylint-dev/pylint/issues/9638>`_)
35+
36+
- Fix a false positive for `possibly-used-before-assignment` when using
37+
`typing.assert_never()` (3.11+) to indicate exhaustiveness.
38+
39+
Closes #9643 (`#9643 <https://github.com/pylint-dev/pylint/issues/9643>`_)
40+
41+
42+
43+
Other Bug Fixes
44+
---------------
45+
46+
- Fix a false negative for ``--ignore-patterns`` when the directory to be linted is specified using a dot(``.``) and all files are ignored instead of only the files whose name begin with a dot.
47+
48+
Closes #9273 (`#9273 <https://github.com/pylint-dev/pylint/issues/9273>`_)
49+
50+
- Restore "errors / warnings by module" section to report output (with `-ry`).
51+
52+
Closes #9145 (`#9145 <https://github.com/pylint-dev/pylint/issues/9145>`_)
53+
54+
- ``trailing-comma-tuple`` should now be correctly emitted when it was disabled globally
55+
but enabled via local message control, after removal of an over-optimisation.
56+
57+
Refs #9608. (`#9608 <https://github.com/pylint-dev/pylint/issues/9608>`_)
58+
59+
- Add `--prefer-stubs=yes` option to opt-in to the astroid 3.2 feature
60+
that prefers `.pyi` stubs over same-named `.py` files. This has the
61+
potential to reduce `no-member` errors but at the cost of more errors
62+
such as `not-an-iterable` from function bodies appearing as `...`.
63+
64+
Defaults to `no`.
65+
66+
Closes #9626
67+
Closes #9623 (`#9626 <https://github.com/pylint-dev/pylint/issues/9626>`_)
68+
69+
70+
71+
Internal Changes
72+
----------------
73+
74+
- Update astroid version to 3.2.1. This solves some reports of ``RecursionError``
75+
and also makes the *prefer .pyi stubs* feature in astroid 3.2.0 *opt-in*
76+
with the aforementioned ``--prefer-stubs=y`` option.
77+
78+
Refs #9139 (`#9139 <https://github.com/pylint-dev/pylint/issues/9139>`_)
79+
80+
81+
1782
What's new in Pylint 3.2.0?
1883
---------------------------
1984
Release date: 2024-05-14

doc/whatsnew/fragments/9139.internal

Lines changed: 0 additions & 5 deletions
This file was deleted.

doc/whatsnew/fragments/9145.bugfix

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/whatsnew/fragments/9273.false_negative

Lines changed: 0 additions & 3 deletions
This file was deleted.

doc/whatsnew/fragments/9608.bugfix

Lines changed: 0 additions & 4 deletions
This file was deleted.

doc/whatsnew/fragments/9626.bugfix

Lines changed: 0 additions & 9 deletions
This file was deleted.

doc/whatsnew/fragments/9627.false_positive

Lines changed: 0 additions & 4 deletions
This file was deleted.

doc/whatsnew/fragments/9638.false_positive

Lines changed: 0 additions & 5 deletions
This file was deleted.

doc/whatsnew/fragments/9643.false_positive

Lines changed: 0 additions & 4 deletions
This file was deleted.

pylint/__pkginfo__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from __future__ import annotations
1111

12-
__version__ = "3.2.0"
12+
__version__ = "3.2.1"
1313

1414

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

tbump.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
github_url = "https://github.com/pylint-dev/pylint"
22

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

towncrier.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.towncrier]
2-
version = "3.2.0"
2+
version = "3.2.1"
33
directory = "doc/whatsnew/fragments"
44
filename = "doc/whatsnew/3/3.2/index.rst"
55
template = "doc/whatsnew/fragments/_template.rst"

0 commit comments

Comments
 (0)