Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ T
Class
T
Lib/test/test_math.py:1001–1002 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
999
1000
# Verify tuple subclasses are allowed
1001
class
T(tuple):
1002
pass
1003
self.assertEqual(dist(T((1, 2, 3)), ((4, 2, -1))), 5.0)
1004
1005
# Test handling of bad arguments
Callers
4
test_inputtypes
Method · 0.70
SomeEnum
Class · 0.70
test_name_conflicts
Method · 0.70
testDist
Method · 0.70
Calls
no outgoing calls
Tested by
3
test_inputtypes
Method · 0.56
test_name_conflicts
Method · 0.56
testDist
Method · 0.56