You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior A clear and concise description of what you expected to happen:
No mypy errors.
Environment
Hera Version: 5.16.2
Python Version: 3.11.8
Argo Version: N/A
Additional context
I believe the issue is that the type hints being added by the _add_type_hints decorator do not include a self parameter, only the kwargs copied from the PydanticKwargs param spec:
Pre-bug-report checklist
1. This bug can be reproduced using pure Argo YAML
If yes, it is more likely to be an Argo bug unrelated to Hera. Please double check before submitting an issue to Hera.
2. I have searched for existing issues
3. This bug occurs in Hera when...
Bug report
Describe the bug
A clear and concise description of what the bug is:
Mypy is raising an error on code using the new Workflow/TemplateSet decorators:
Error log if applicable:
To Reproduce
Full Hera code to reproduce the bug:
Expected behavior
A clear and concise description of what you expected to happen:
No mypy errors.
Environment
Additional context
I believe the issue is that the type hints being added by the
_add_type_hints
decorator do not include aself
parameter, only the kwargs copied from thePydanticKwargs
param spec:hera/src/hera/workflows/_meta_mixins.py
Lines 478 to 491 in a50ba23
The text was updated successfully, but these errors were encountered: