MCPcopy Index your code
hub / github.com/python/cpython / C_with_slots

Class C_with_slots

Lib/test/test_descr.py:4284–4285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4282 self.assertEqual(repr(b), '<A>')
4283
4284 class C_with_slots(A_with_slots):
4285 __slots__ = ()
4286 c = C_with_slots()
4287 with self.assertRaisesRegex(TypeError, 'layout differs'):
4288 C_with_slots.__bases__ = (A_with_slots_dict,)

Callers 1

test_mutable_basesMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_mutable_basesMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…