Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional parent node for move node #561

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Conversation

electronicbites
Copy link
Collaborator

@electronicbites electronicbites commented Sep 5, 2024

I had to change the signature for move_node otherwise it would not be possible to differentiate between setting a value to niland omitting the value. I used a keyword list since this a classic for optional parameters. Another option would be to use a map like for insert_node

@electronicbites electronicbites self-assigned this Sep 5, 2024
@electronicbites electronicbites force-pushed the optional-parent-node-for-move-node branch from 29fa4fe to d81d2ea Compare September 5, 2024 19:27
@electronicbites electronicbites marked this pull request as ready for review September 5, 2024 19:29
@electronicbites electronicbites force-pushed the optional-parent-node-for-move-node branch from d81d2ea to 05984d0 Compare September 5, 2024 19:33
in order to achieve this we need a different signature, use a keyword list instead of fixed parameters
@electronicbites electronicbites force-pushed the optional-parent-node-for-move-node branch from 05984d0 to 78f21a2 Compare September 5, 2024 19:35
Copy link
Collaborator

@sorax sorax left a comment

Choose a reason for hiding this comment

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

looks good to me

@sorax sorax merged commit 71291e8 into main Sep 6, 2024
1 check passed
@sorax sorax deleted the optional-parent-node-for-move-node branch September 6, 2024 19:25
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