MCPcopy Index your code
hub / github.com/RustPython/RustPython / dictlike

Class dictlike

Lib/test/test_dict.py:347–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345 self.assertEqual(d.fromkeys(g()), {1:None})
346 self.assertRaises(TypeError, {}.fromkeys, 3)
347 class dictlike(dict): pass
348 self.assertEqual(dictlike.fromkeys('a'), {'a':None})
349 self.assertEqual(dictlike().fromkeys('a'), {'a':None})
350 self.assertIsInstance(dictlike.fromkeys('a'), dictlike)

Callers 1

test_fromkeysMethod · 0.70

Calls

no outgoing calls

Tested by 1

test_fromkeysMethod · 0.56