MCPcopy Create free account
hub / github.com/RustPython/RustPython / MM

Class MM

Lib/test/test_typing.py:4903–4913  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4901
4902 def test_abc_bases(self):
4903 class MM(MutableMapping[str, str]):
4904 def __getitem__(self, k):
4905 return None
4906 def __setitem__(self, k, v):
4907 pass
4908 def __delitem__(self, k):
4909 pass
4910 def __iter__(self):
4911 return iter(())
4912 def __len__(self):
4913 return 0
4914 # this should just work
4915 MM().update()
4916 self.assertIsInstance(MM(), collections.abc.MutableMapping)

Callers 2

test_abc_basesMethod · 0.70

Calls

no outgoing calls

Tested by 2

test_abc_basesMethod · 0.56