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

Class PairsWithoutTruth

test/test_update_truth.py:6–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5
6class PairsWithoutTruth:
7 def __init__(self, pairs):
8 self.pairs = pairs
9
10 def __iter__(self):
11 return iter(self.pairs)
12
13 def __bool__(self):
14 raise ValueError("truth value is ambiguous")
15
16
17class MappingWithoutTruth(dict):

Calls

no outgoing calls