MCPcopy Create free account
hub / github.com/MaterializeInc/demos / __init__

Method __init__

connection-examples/python/state.py:12–16  ·  view source on GitHub ↗
(self, collect_history: bool = False)

Source from the content-addressed store, hash-verified

10
11class State:
12 def __init__(self, collect_history: bool = False):
13 self.state = {}
14 self.timestamp = 0
15 self.valid = True
16 self.history = [] if collect_history else None
17
18 def get_state(self) -> List[T]:
19 result = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected