@@ -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+
1782What's new in Pylint 3.2.0?
1883---------------------------
1984Release date: 2024-05-14
0 commit comments