summaryrefslogtreecommitdiff
path: root/doc/data/messages/u/unsupported-membership-test/good.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/data/messages/u/unsupported-membership-test/good.py')
-rw-r--r--doc/data/messages/u/unsupported-membership-test/good.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/data/messages/u/unsupported-membership-test/good.py b/doc/data/messages/u/unsupported-membership-test/good.py
index 96b96d4d5..a5af58d5d 100644
--- a/doc/data/messages/u/unsupported-membership-test/good.py
+++ b/doc/data/messages/u/unsupported-membership-test/good.py
@@ -1,5 +1,6 @@
class Fruit:
FRUITS = ["apple", "orange"]
+
def __contains__(self, name):
return name in self.FRUITS