Skip to content

Commit 4cab7ca

Browse files
Bump pylint to 3.3.9, update changelog
1 parent 81fb483 commit 4cab7ca

File tree

12 files changed

+47
-26
lines changed

12 files changed

+47
-26
lines changed

doc/whatsnew/3/3.3/index.rst

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

1515
.. towncrier release notes start
1616
17+
What's new in Pylint 3.3.9?
18+
---------------------------
19+
Release date: 2025-10-05
20+
21+
22+
False Positives Fixed
23+
---------------------
24+
25+
- Fix used-before-assignment for PEP 695 type aliases and parameters.
26+
27+
Closes #9815 (`#9815 <https://github.com/pylint-dev/pylint/issues/9815>`_)
28+
29+
- No longer flag undeprecated functions in ``importlib.resources`` as deprecated.
30+
31+
Closes #10593 (`#10593 <https://github.com/pylint-dev/pylint/issues/10593>`_)
32+
33+
- Fix false positive ``inconsistent-return-statements`` when using ``quit()`` or ``exit()`` functions.
34+
35+
Closes #10508 (`#10508 <https://github.com/pylint-dev/pylint/issues/10508>`_)
36+
37+
- Fix false positive ``undefined-variable`` (E0602) for for-loop variable shadowing patterns like ``for item in item:`` when the variable was previously defined.
38+
39+
Closes #10562 (`#10562 <https://github.com/pylint-dev/pylint/issues/10562>`_)
40+
41+
42+
43+
Other Bug Fixes
44+
---------------
45+
46+
- Fixed crash in ``unnecessary-list-index-lookup`` when starting an enumeration using
47+
minus the length of an iterable inside a dict comprehension when the len call was only
48+
made in this dict comprehension, and not elsewhere. Also changed the approach,
49+
to use inference in all cases but the simple ones, so we don't have to fix crashes
50+
one by one for arbitrarily complex expressions in enumerate.
51+
52+
Closes #10510 (`#10510 <https://github.com/pylint-dev/pylint/issues/10510>`_)
53+
54+
55+
1756
What's new in Pylint 3.3.8?
1857
---------------------------
1958
Release date: 2025-08-09

doc/whatsnew/fragments/10508.bugfix

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

doc/whatsnew/fragments/10510.bugfix

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

doc/whatsnew/fragments/10562.bugfix

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

doc/whatsnew/fragments/10593.false_positive

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

doc/whatsnew/fragments/9815.false_positive

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

examples/pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,9 @@ disable=raw-checker-failed,
436436
suppressed-message,
437437
useless-suppression,
438438
deprecated-pragma,
439+
use-symbolic-message-instead,
439440
use-implicit-booleaness-not-comparison-to-string,
440-
use-implicit-booleaness-not-comparison-to-zero,
441-
use-symbolic-message-instead
441+
use-implicit-booleaness-not-comparison-to-zero
442442

443443
# Enable the message, report, category or checker with the given id(s). You can
444444
# either give multiple identifier separated by comma (,) or put this option

examples/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ disable = [
381381
"suppressed-message",
382382
"useless-suppression",
383383
"deprecated-pragma",
384+
"use-symbolic-message-instead",
384385
"use-implicit-booleaness-not-comparison-to-string",
385386
"use-implicit-booleaness-not-comparison-to-zero",
386-
"use-symbolic-message-instead",
387387
]
388388

389389
# Enable the message, report, category or checker with the given id(s). You can

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.3.8"
12+
__version__ = "3.3.9"
1313

1414

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

script/.contributors_aliases.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@
274274
"66853113+pre-commit-ci[bot]@users.noreply.github.com",
275275
"49699333+dependabot[bot]@users.noreply.github.com",
276276
"212256041+pylint-backport-bot[bot]@users.noreply.github.com",
277-
"41898282+github-actions[bot]@users.noreply.github.com"
277+
"41898282+github-actions[bot]@users.noreply.github.com",
278+
"212256041+pylint-backport[bot]@users.noreply.github.com"
278279
],
279280
"name": "bot"
280281
},

0 commit comments

Comments
 (0)