summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorDmitry Pribysh <dmand@yandex.ru>2015-10-19 17:44:10 +0300
committerDmitry Pribysh <dmand@yandex.ru>2015-10-19 17:44:10 +0300
commit816d3212d15ba297aa3a234d7874974d9f39b4bd (patch)
tree2a55cd5bb12fc49ec47919c926dca12ebf2aa3ba /ChangeLog
parent5e649a112f60f3c330b5f7544b6e6286f983beca (diff)
downloadpylint-816d3212d15ba297aa3a234d7874974d9f39b4bd.tar.gz
Add checker for membership rules and testsmembership-test-checker
Idea of checking is very simple: value used to the right of the 'in' operator should support membership test protocol (i.e. define either __contains__ or __iter__ or __getitem__). Fixes issue #589.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog4
1 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b25533b..957ed56 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,10 @@ ChangeLog for Pylint
--------------------
--
+ * Add a new error, 'unsupported-membership-test', emitted when value
+ to the right of the 'in' operator doesn't support membership test
+ protocol (i.e. doesn't define __contains__/__iter__/__getitem__)
+
* Add new errors, 'not-an-iterable', emitted when non-iterable value
is used in an iterating context (starargs, for-statement,
comprehensions, etc), and 'not-a-mapping', emitted when non-mapping