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

Class MMC

Lib/test/test_typing.py:7759–7769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7757 MMA()
7758
7759 class MMC(MMA):
7760 def __getitem__(self, k):
7761 return None
7762 def __setitem__(self, k, v):
7763 pass
7764 def __delitem__(self, k):
7765 pass
7766 def __iter__(self):
7767 return iter(())
7768 def __len__(self):
7769 return 0
7770
7771 self.assertEqual(len(MMC()), 0)
7772 self.assertTrue(callable(MMC.update))

Callers 1

test_subclassingMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_subclassingMethod · 0.68