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

Class B_with_slots_dict_weakref

Lib/test/test_descr.py:4270–4271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4268 self.assertEqual(repr(b), '<A>')
4269
4270 class B_with_slots_dict_weakref:
4271 __slots__ = ('x', '__dict__', '__weakref__')
4272 b = B_with_slots_dict_weakref()
4273 with self.assertRaisesRegex(TypeError, 'layout differs'):
4274 B_with_slots_dict_weakref.__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…