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

Class MM

Lib/test/test_typing.py:5010–5020  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5008
5009 def test_abc_bases(self):
5010 class MM(MutableMapping[str, str]):
5011 def __getitem__(self, k):
5012 return None
5013 def __setitem__(self, k, v):
5014 pass
5015 def __delitem__(self, k):
5016 pass
5017 def __iter__(self):
5018 return iter(())
5019 def __len__(self):
5020 return 0
5021 # this should just work
5022 MM().update()
5023 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