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

Add node for Python function definitions #157

Merged
merged 3 commits into from
Jul 14, 2024

Conversation

vandalt
Copy link
Contributor

@vandalt vandalt commented Jul 13, 2024

Hi!

This adds a node for function definitions in Python. I saw that it was already implemented for R so I used the same target node ("parameters"). I did a few tests locally and it worked well.

I also added a test spec for this new node. I did not add any new code to index.py, as I figured the same code as for parameters could be re-used. Let me know if you would rather have a separate function for this test.

Thanks!

Using parameters as target. Inspired by the same functionality in
`r.lua`.
Re-using the same code as for arguments
@Wansmer
Copy link
Owner

Wansmer commented Jul 14, 2024

Thanks for the PR!

@Wansmer Wansmer merged commit 4141d16 into Wansmer:main Jul 14, 2024
2 checks passed
@vandalt vandalt deleted the python-function-def branch July 14, 2024 21:51
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