MCPcopy 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_inputtypesMethod · 0.70
SomeEnumClass · 0.70
test_name_conflictsMethod · 0.70
testDistMethod · 0.70

Calls

no outgoing calls

Tested by 3

test_inputtypesMethod · 0.56
test_name_conflictsMethod · 0.56
testDistMethod · 0.56