| 275 | log = [] |
| 276 | |
| 277 | class Python(ValidatePythonHandlerProtocol): |
| 278 | def on_enter(self, input, **kwargs) -> None: |
| 279 | log.append(f'python enter input={input} kwargs={kwargs}') |
| 280 | |
| 281 | def on_success(self, result: Any) -> None: |
| 282 | log.append(f'python success result={result}') |
| 283 | |
| 284 | def on_error(self, error: ValidationError) -> None: |
| 285 | log.append(f'python error error={error}') |
| 286 | |
| 287 | class Json(ValidateJsonHandlerProtocol): |
| 288 | def on_enter(self, input, **kwargs) -> None: |
no outgoing calls