Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ A
Class
A
Lib/test/test_statistics.py:3249–3251 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3247
3248
# Test NotImplemented when types are different
3249
class
A:
3250
def
__eq__(self, other):
3251
return
10
3252
a = A()
3253
self.assertEqual(nd1.__eq__(a), NotImplemented)
3254
self.assertEqual(nd1 == a, 10)
Callers
1
test_equality
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_equality
Method · 0.56