Inspector.signature doesn't work correctly on scene methods #1439
Unanswered
ArakayMajena
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I encountered an issue while writing a wrapper for scene class to simplify the process of describing similar objects with minimal differences. The inspector cannot correctly determine the list of arguments that a scene method expects, regardless of whether it is decorated or not. At best, it only returns "(self)".
I spent a lot of time trying to figure out the reason, but I was unsuccessful.
The goal of creating the aforementioned wrapper was to implement the ability to override the "base" scene, changing the logic of "assembling" content for the message.
Initially, I wanted to simply override the original action handler, but from what I understand, this is not possible, so I came to this solution.
My code example:
In this example, no matter what I do, rq_params is always equal to no more than "(self)".
Am I misunderstanding something and it is not supposed to work (if possible, please provide some more correct/optimal solutions) or is something actually not working here, and has anyone else encountered this issue?
Beta Was this translation helpful? Give feedback.
All reactions