Full changelog¶
What's New in Pylint 2.1.1?¶
Release date: 2018-08-07
fix pylint crash due to
misplaced-format-functionnot correctly handling class attribute.Closes #2384
Do not emit *-builtin for Python 3 builtin checks when the builtin is used inside a try-except
Closes #2228
simplifiable-if-statementnot emitted when dealing with subscripts
What's New in Pylint 2.1?¶
Release date: 2018-08-01
trailing-comma-tuplegets emitted foryieldstatements as well.Closes #2363
Get only the arguments of the scope function for
redefined-argument-from-localCloses #2364
Add a check
misplaced-format-functionwhich is emitted if format function is used on non str object.Closes #2200
chain.from_iterableno longer emits dict-{}-not-iterating when dealing with dict values and keysDemote the
try-except-raisemessage from an error to a warning (E0705 -> W0706)Closes #2323
Correctly handle the new name of the Python implementation of the
abcmodule.Closes PyCQA/astroid#2288
Modules with
__getattr__are exempted by default fromno-memberThere's no easy way to figure out if a module has a particular member when the said module uses
__getattr__, which is a new addition to Python 3.7. Instead we assume the safe thing to do, in the same way we do for classes, and skip those modules from checking.Closes #2331
Fix a false positive
invalid namemessage when method or attribute name is longer then 30 characters.Closes #2047
Include the type of the next branch in
no-else-returnCloses #2295
Fix inconsistent behaviour for bad-continuation on first line of file
Closes #2281
Fix not being able to disable certain messages on the last line through the global disable option
Closes #2278
Don't emit
useless-returnwhen we have a single statement that is the return itselfWe still want to be explicit when a function is supposed to return an optional value; even though
passcould still work, it's not explicit enough and the function might look like it's missing an implementation.Closes #2300
Fix false-positive undefined-variable for self referential class name in lamdbas
Closes #704
Don't crash when
pylintis unable to infer the value of an argument tonext()Closes #2316
Don't emit
not-an-iterablewhen dealing with async iterators.But do emit it when using the usual iteration protocol against async iterators.
Closes #2311
Can specify a default docstring type for when the check cannot guess the type
Closes #1169