What's new in Pylint 2.17.5?
Release date: 2023-07-26
False Positives Fixed
-
Fix a false positive for
unused-variable
when there is an import in a
if TYPE_CHECKING:
block andallow-global-unused-variables
is set to
no
in the configuration.Closes #8696
-
Fix false positives generated when supplying arguments as
**kwargs
to IO
calls like open().Closes #8719
-
Fix a false positive where pylint was ignoring method calls annotated as
NoReturn
during theinconsistent-return-statements
check.Closes #8747
-
Exempt parents with only type annotations from the
invalid-enum-extension
message.Closes #8830
Other Bug Fixes
-
Fixed crash when a call to
super()
was placed after an operator (e.g.
not
).Closes #8554
-
Fix crash for
modified-while-iterating
checker when deleting
members of a dict returned from a call.Closes #8598
-
Fix crash in
invalid-metaclass
check when a metaclass had duplicate
bases.Closes #8698
-
Avoid
consider-using-f-string
on modulos with brackets in template.Closes #8720.
-
Fix a crash when
__all__
exists but cannot be inferred.Closes #8740
-
Fix crash when a variable is assigned to a class attribute of identical name.
Closes #8754
-
Fixed a crash when calling
copy.copy()
without arguments.Closes #8774
Other Changes
-
Fix a crash when a
nonlocal
is defined at module-level.Closes #8735