MCPcopy Index your code
hub / github.com/pathwaycom/pathway / InputSubject

Class InputSubject

python/pathway/tests/test_persistence.py:840–853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838 b: int
839
840 class InputSubject(pw.io.python.ConnectorSubject):
841 data: list[dict[str, int]]
842
843 def __init__(self, data: list[dict[str, int]]) -> None:
844 super().__init__()
845 self.data = data
846
847 def run(self) -> None:
848 for entry in self.data:
849 self.next(**entry)
850
851 @property
852 def _session_type(self) -> SessionType:
853 return SessionType.UPSERT
854
855 def run_computation(inputs: list[dict[str, int]], expected: set[str]):
856 G.clear()

Callers 1

run_computationFunction · 0.70

Calls

no outgoing calls

Tested by 1

run_computationFunction · 0.56