MCPcopy Create free account
hub / github.com/cdgriffith/Box / Two

Class Two

test/test_box_list.py:834–836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832
833 def test_rmul_and_index_protocol(self):
834 class Two:
835 def __index__(self):
836 return 2
837
838 bl = BoxList([{"a": 1}])
839 for result in (2 * bl, bl * Two()):

Callers 1

Calls

no outgoing calls

Tested by 1