Add a new example row. Args: values (Sequence[str]): The values for the example row.
(self, values: Sequence[str])
| 110 | self.example_params = [str(key) for key in keys] |
| 111 | |
| 112 | def add_example(self, values: Sequence[str]) -> None: |
| 113 | """Add a new example row. |
| 114 | |
| 115 | Args: |
| 116 | values (Sequence[str]): The values for the example row. |
| 117 | """ |
| 118 | self.examples.append([str(value) if value is not None else "" for value in values]) |
| 119 | |
| 120 | def as_contexts(self) -> Iterable[dict[str, Any]]: |
| 121 | """Generate contexts for the examples. |