Files
hatchet/frontend/docs/lib/generated/snips/python/quickstart/run.ts
Matt Kaye 246f284a98 Fix: Quote replacement in generated doc snippets (#1755)
* fix: get rid of quote replacing

* chore: gen

* drive by: event doc wording

* fix: dedenting
2025-05-20 09:19:58 -04:00

12 lines
632 B
TypeScript

import { Snippet } from '@/lib/generated/snips/types';
const snippet: Snippet = {
"language": "python",
"content": "import asyncio\n\nfrom .workflows.first_task import SimpleInput, first_task\n\n\nasync def main() -> None:\n result = await first_task.aio_run(SimpleInput(message=\"Hello World!\"))\n\n print(\n \"Finished running task, and got the transformed message! The transformed message is:\",\n result.transformed_message,\n )\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n",
"source": "out/python/quickstart/run.py",
"blocks": {},
"highlights": {}
};
export default snippet;