Skip to content

Instantly share code, notes, and snippets.

@zzstoatzz
Created January 30, 2025 16:55
Show Gist options
  • Save zzstoatzz/230fb8318cda0192c27a4a9cecf92a05 to your computer and use it in GitHub Desktop.
Save zzstoatzz/230fb8318cda0192c27a4a9cecf92a05 to your computer and use it in GitHub Desktop.
from prefect import task
def some_fn(x: int, y: str) -> int:
return x + len(y)
some_task = task(some_fn)
print(some_task(x=1, y="hello"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment