Skip to content

Conversation

fnesveda
Copy link
Member

I found out that inspect.signature() cannot read the signature of built-in methods, so e.g. Actor.on(ActorEventTypes.SYSTEM_INFO, print) would not work.

This fixes it by rewriting the signature-processing to ignore errors when the signature can't be read, and also to better check methods which have default arguments, by just trying to bind the arguments to the method signature.

@fnesveda fnesveda added bug Something isn't working. t-core-services Issues with this label are in the ownership of the core services team. adhoc Ad-hoc unplanned task added during the sprint. labels Mar 29, 2023
@fnesveda fnesveda added this to the 60th sprint - Platform team milestone Mar 29, 2023
@fnesveda fnesveda self-assigned this Mar 29, 2023
@fnesveda fnesveda merged commit 93fc7c8 into master Mar 30, 2023
@fnesveda fnesveda deleted the fix/event-handler-signature-reading branch March 30, 2023 08:55
@fnesveda fnesveda added the validated Issues that are resolved and their solutions fulfill the acceptance criteria. label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adhoc Ad-hoc unplanned task added during the sprint. bug Something isn't working. t-core-services Issues with this label are in the ownership of the core services team. validated Issues that are resolved and their solutions fulfill the acceptance criteria.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants