Replies: 1 comment
-
Unfortunately there's no way to support In []: class C:
...: def __contains__(self, value):
...: return 'contains'
...:
In []: None in C()
Out[]: True |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I this?
I tried to implement it since
_
has not__contains__
, but the only result was not-working"123" in _
. Hopes the author can implement this better than me.Beta Was this translation helpful? Give feedback.
All reactions