What's New in Pylint 2.15#
Summary -- Release highlights#
Added new checker
missing-timeout to warn of default timeout values that could cause
a program to be hanging indefinitely.
False positives fixed#
unsupported-binary-operationon Python <= 3.9 when using the
|operator with types, if one has a metaclass that overloads
False negatives fixed#
modified-iterating-listand analogous messages for dicts and sets when iterating literals, or when using the
using-constant-testwhen testing the truth value of a variable or call result holding a generator.
used-before-assignmentfor self-referencing named expressions (
:=) lacking prior assignments.
used-before-assignmentwhen calling nested functions before assignment.
used-before-assignmentwhen relying on a name that is reimported later in a function.
used-before-assignmentfor self-referencing assignments under if conditions.
unhashable-memberand emit when creating sets and dicts, not just when accessing dicts.
Closes #7034, Closes #7055
Other bug fixes#
useless-super-delegationhas been renamed to
useless-parent-delegationin order to be more generic.
pylint.testutils.primeris now a private API.
Fixed an issue where it was impossible to update functional tests output when the existing output was impossible to parse. Instead of raising an error we raise a warning message and let the functional test fail with a default value.