Skip to content

Commit e80e55d

Browse files
Merge maintenance following 3.0.3 release
2 parents 3d5bd53 + 4860b82 commit e80e55d

File tree

7 files changed

+52
-31
lines changed

7 files changed

+52
-31
lines changed

doc/whatsnew/3/3.0/index.rst

Lines changed: 52 additions & 0 deletions
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

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

doc/whatsnew/fragments/9172.false_positive

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

doc/whatsnew/fragments/9193.false_positive

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

doc/whatsnew/fragments/9210.bugfix

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

doc/whatsnew/fragments/9268.false_positive

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

doc/whatsnew/fragments/9288.false_positive

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

0 commit comments

Comments
 (0)