DALI
DALI copied to clipboard
Generate signatures
TODO:
- [ ] deduplicate between modules
- [ ] See if explicit kwargs break something
- [ ] Does it help with IDE integration?
Signed-off-by: Krzysztof Lecki [email protected]
Why we need this PR?
Set signatures of DALI calls.
What happened in this PR?
- What solution was applied:
Decorate the
__call__orfn.opand set the signature explicitly. Bind the arguments to signature to group and reorder them as needed by the operator (between named positional args and kwargs).
Reference: https://www.python.org/dev/peps/pep-0362/
- Affected modules and functionalities: ops and fn Python APIs.
- Key points relevant for the review: [ Describe here what is the most important part that reviewers should focus on. ]
- Validation and testing: [ Describe here if and how this PR is tested. ]
- Documentation (including examples): [ Describe here if documentation and examples were updated. ]
JIRA TASK: [Use DALI-XXXX or NA]
CI MESSAGE: [3840113]: BUILD FAILED
Done in #5154