runnable-hub/python/runnable_workers/pythonWorker/response.py (8 lines of code) (raw):
from runnable_hub import RunnableResponse
from typing import Dict, Optional
class PythonResponse(RunnableResponse):
runnableCode: str = "PYTHON"
stdout: str
stderr: str
returncode: int | None
outputs: Dict[str, str] = {}