type hints not supported #67537
Replies: 7 comments
-
@kiemlicz Thanks for the report. I'm marking this as a feature request as it would be a new addition. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Could you please add some labels that prevent this bot from closing tickets, it is a bit annoying. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
-
Confirmed this issue still exists on 3003 and that it also affects grains modules. Incidentally, custom output and returner modules work just fine with type annotations. @garethgreenaway , what's the stance on this issue now that we live in a Python 3 world? |
Beta Was this translation helpful? Give feedback.
-
This was fixed in 3005rc1 21f0644 |
Beta Was this translation helpful? Give feedback.
-
Description of Issue/Question
It is impossible to run Execution Module which contains type hints from CLI
Is there any workaround available now?
Setup
Create any custom Execution Module with type hints, e.g.
_modules/my.py
:Steps to Reproduce Issue
Run from CLI (sync_all first):
salt '*' my.info 127.0.0.1 11111
It will fail with:
Versions Report
Beta Was this translation helpful? Give feedback.
All reactions