summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2018-06-06 11:22:06 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2018-06-06 11:22:06 -0700
commit9a9de854741e2f3d8f97cbace3d7de444acae340 (patch)
treea536de5aa9eff97009c643137c6995adf6286a67 /doc
parent35ac5f6b5711f614f1ddbea9bb1f1b39b9be6a90 (diff)
downloadpylint-git-9a9de854741e2f3d8f97cbace3d7de444acae340.tar.gz
`assignment-from-no-return` considers methods as well.
Close #2081
Diffstat (limited to 'doc')
-rw-r--r--doc/whatsnew/2.0.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/whatsnew/2.0.rst b/doc/whatsnew/2.0.rst
index d7265f18d..72f8ab7b0 100644
--- a/doc/whatsnew/2.0.rst
+++ b/doc/whatsnew/2.0.rst
@@ -259,4 +259,10 @@ Other Changes
When modules are imported under ``typing.TYPE_CHECKING`` guard, **pylint**
will no longer emit *unused-import*.
+* ``assignment-from-no-return`` considers methods as well as functions.
+
+ If you have a method that doesn't return a value, but later on you assign
+ a value to a function call to that method (so basically it will be `None`),
+ then **pylint** is going to emit an ``assignment-from-no-return`` error.
+
.. _PEP 563: https://www.python.org/dev/peps/pep-0563/