- Release
2.11
- Date
TBA
Added
consider-using-f-string
: Emitted when .format() or '%' is being used to format a string.Closes #3592
Added new extension
SetMembershipChecker
withuse-set-for-membership
check: Emitted when using an in-place definedlist
ortuple
to do a membership test.sets
are better optimized for that.Closes #4776
CodeStyleChecker
Added
consider-using-assignment-expr
: Emitted when an assignment is directly followed by an if statement and both can be combined by using an assignment expression:=
. Requires Python 3.8Closes #4862
- Added
py-version
config key (if[MASTER]
section). Used for version dependant checks. Will default to whatever Python version pylint is executed with. - The
invalid-name
message is now more detailed when using multiple naming style regexes. Fix false positive for
consider-using-with
if a context manager is assigned to a variable in different paths of control flow (e. g. if-else clause).Closes #4751
Fix false positive for
function-redefined
for simple type annotationsCloses #4936
- Fix false positive for
protected-access
if a protected member is used in type hints of function definitions Fix false positive
dict-iter-missing-items
for dictionaries only using tuples as keysCloses #3282