Skip to content

Commit 1a5ffc1

Browse files
Bump pylint to 3.0.3, update changelog
1 parent 54687e7 commit 1a5ffc1

10 files changed

+55
-34
lines changed

doc/whatsnew/3/3.0/index.rst

+52
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,58 @@ easier to parse and provides more info, here's a sample output.
6565
6666
.. towncrier release notes start
6767
68+
What's new in Pylint 3.0.3?
69+
---------------------------
70+
Release date: 2023-12-11
71+
72+
73+
False Positives Fixed
74+
---------------------
75+
76+
- Fixed false positive for ``unnecessary-lambda`` when the call has keyword arguments but not the lambda.
77+
78+
Closes #9148 (`#9148 <https://github.com/pylint-dev/pylint/issues/9148>`_)
79+
80+
- Fixed incorrect suggestion for shallow copy in unnecessary-comprehension
81+
82+
Example of the suggestion:
83+
#pylint: disable=missing-module-docstring
84+
a = [1, 2, 3]
85+
b = [x for x in a]
86+
b[0] = 0
87+
print(a) # [1, 2, 3]
88+
89+
After changing b = [x for x in a] to b = a based on the suggestion, the script now prints [0, 2, 3]. The correct suggestion should be use list(a) to preserve the original behavior.
90+
91+
Closes #9172 (`#9172 <https://github.com/pylint-dev/pylint/issues/9172>`_)
92+
93+
- Fix false positives for ``undefined-variable`` and ``unused-argument`` for
94+
classes and functions using Python 3.12 generic type syntax.
95+
96+
Closes #9193 (`#9193 <https://github.com/pylint-dev/pylint/issues/9193>`_)
97+
98+
- Fixed ``pointless-string-statement`` false positive for docstrings
99+
on Python 3.12 type aliases.
100+
101+
Closes #9268 (`#9268 <https://github.com/pylint-dev/pylint/issues/9268>`_)
102+
103+
- Fix false positive for ``invalid-exception-operation`` when concatenating tuples
104+
of exception types.
105+
106+
Closes #9288 (`#9288 <https://github.com/pylint-dev/pylint/issues/9288>`_)
107+
108+
109+
110+
Other Bug Fixes
111+
---------------
112+
113+
- Fix a bug where pylint was unable to walk recursively through a directory if the
114+
directory has an `__init__.py` file.
115+
116+
Closes #9210 (`#9210 <https://github.com/pylint-dev/pylint/issues/9210>`_)
117+
118+
119+
68120
What's new in Pylint 3.0.2?
69121
---------------------------
70122
Release date: 2023-10-22

doc/whatsnew/fragments/9148.false_positive

-3
This file was deleted.

doc/whatsnew/fragments/9172.false_positive

-12
This file was deleted.

doc/whatsnew/fragments/9193.false_positive

-4
This file was deleted.

doc/whatsnew/fragments/9210.bugfix

-4
This file was deleted.

doc/whatsnew/fragments/9268.false_positive

-4
This file was deleted.

doc/whatsnew/fragments/9288.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__ = "3.0.2"
12+
__version__ = "3.0.3"
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/pylint-dev/pylint"
22

33
[version]
4-
current = "3.0.2"
4+
current = "3.0.3"
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 = "3.0.2"
2+
version = "3.0.3"
33
directory = "doc/whatsnew/fragments"
44
filename = "doc/whatsnew/3/3.0/index.rst"
55
template = "doc/whatsnew/fragments/_template.rst"

0 commit comments

Comments
 (0)