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

Class MMB

Lib/test/test_typing.py:7775–7785  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7773 self.assertIsInstance(MMC(), typing.Mapping)
7774
7775 class MMB(typing.MutableMapping[KT, VT]):
7776 def __getitem__(self, k):
7777 return None
7778 def __setitem__(self, k, v):
7779 pass
7780 def __delitem__(self, k):
7781 pass
7782 def __iter__(self):
7783 return iter(())
7784 def __len__(self):
7785 return 0
7786
7787 self.assertEqual(len(MMB()), 0)
7788 self.assertEqual(len(MMB[str, str]()), 0)

Callers 1

test_subclassingMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_subclassingMethod · 0.68