Skip to content

Feature/20260331 28832950 handle graalcodeexecutor unwanted params silently 1 - #47

Merged
canfuu merged 4 commits into
mainfrom
feature/20260331_28832950_handle_graalcodeexecutor_unwanted_params_silently_1
Mar 31, 2026
Merged

Feature/20260331 28832950 handle graalcodeexecutor unwanted params silently 1#47
canfuu merged 4 commits into
mainfrom
feature/20260331_28832950_handle_graalcodeexecutor_unwanted_params_silently_1

Conversation

@AQing-527

Copy link
Copy Markdown
Collaborator

This pull request updates the Python method generation logic in GraalCodeExecutor to make generated methods more robust when handling unexpected keyword arguments. The main improvement is that all generated Python methods will now accept extra keyword arguments, which helps prevent runtime errors when extra parameters are passed (such as from form data).

Improvements to Python method generation:

  • Updated the method in GraalCodeExecutor.java to append **_extra_kwargs to the parameter list of generated Python methods, allowing them to gracefully absorb unexpected keyword arguments and avoid TypeError exceptions.

@canfuu
canfuu enabled auto-merge March 31, 2026 13:19

@canfuu canfuu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@canfuu
canfuu merged commit de80a3e into main Mar 31, 2026
1 check passed
@canfuu
canfuu deleted the feature/20260331_28832950_handle_graalcodeexecutor_unwanted_params_silently_1 branch March 31, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants