diff options
author | ssolanki <sushobhitsolanki@gmail.com> | 2018-08-02 13:08:09 +0530 |
---|---|---|
committer | Sushobhit <31987769+sushobhit27@users.noreply.github.com> | 2018-08-09 12:43:04 +0530 |
commit | d7580c648c8fe688fad16cf76126c07e4871f4d7 (patch) | |
tree | 8a9f1ef88129de1182cdb2c00148a5313e81d3f1 /ChangeLog | |
parent | 7a304df6579cb3ad996ae30b70feaa73448fdb25 (diff) | |
download | pylint-git-d7580c648c8fe688fad16cf76126c07e4871f4d7.tar.gz |
adapt existing test cases with new condition for unnecessary-pass
fix lint issues
fix existing test case
modify changeLog
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -7,7 +7,15 @@ What's New in Pylint 2.2? Release date: TBA - * Stop ``protected-access`` exception for missing class attributes + * Stop ``protected-access`` exception for missing class attributes + + * `unnecessary-pass` is now also emitted when a function or class contains only docstring and pass statement. + + In Python, stubbed functions often have a body that contains just a single `pass` statement, + indicating that the function doesn't do anything. However, a stubbed function can also have just a + docstring, and function with a docstring and no body also does nothing. + + Close #2208 What's New in Pylint 2.1.1? @@ -28,14 +36,6 @@ What's New in Pylint 2.1? ========================= Release date: 2018-08-01 - * `unnecessary-pass` is now also emitted when a function or class contains only docstring and pass statement. - - In Python, stubbed functions often have a body that contains just a single `pass` statement, - indicating that the function doesn't do anything. However, a stubbed function can also have just a - docstring, and function with a docstring and no body also does nothing. - - Close #2208 - * `trailing-comma-tuple` gets emitted for ``yield`` statements as well. Close #2363 |