Closed younesdessia closed 7 months ago
No, __annotations__
is dictionary that gathers all info about the signature of the method, when it is typed.
We actually use it to generate function schemas and the last thing we wan't to do is to pollute and modify it in some obscure context (decorated functions search).
The current solution is already an abuse of how python works and I would prefer if we had another one, but this whole "search and find decorated methods" is not how decorators are supposed to work, so we have to stick with that for the moment
**Note: for support questions, please use https://nextcloud.dessia.tech/call/hr9z9bif
I'm submitting a ...
What is the current behavior?
is it more interesting to do like this to attach metadata to function, using annotations?
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem Avoid reference to other packages
What is the expected behavior?
What is the motivation / use case for changing the behavior?
Possible fixes
Please tell us about your environment: