argoproj-labs / hera

Hera makes Python code easy to orchestrate on Argo Workflows through native Python integrations. It lets you construct and submit your Workflows entirely in Python. ⭐️ Remember to star!
https://hera.rtfd.io
Apache License 2.0
560 stars 105 forks source link

Validate Input/Output class for new decorator functions at build time #1171

Open elliotgunton opened 3 weeks ago

elliotgunton commented 3 weeks ago

Is your feature request related to a problem? Please describe. When writing a script template I might forget to use an Input or Output in the function definition, when subclasses of those are the only things allowed.

Describe the solution you'd like A clear and concise description of what you want to happen.

Validate and raise an error when function input/output types are not Input/Output (allow empty/None input/output)

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. Remember to use the right types? 😆

Additional context Add any other context or screenshots about the feature request here.