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

Map2 support varargs functions #76

Merged
merged 3 commits into from
May 22, 2024
Merged

Conversation

davidparks21
Copy link
Contributor

The map2 function didn't support functions defined with keyword varargs, such as:

def f(a, b, **kwargs):
pass

This is fixed by adding a kwargs option along with function docs showing an example.

@davidparks21 davidparks21 self-assigned this Mar 8, 2024
@davidparks21 davidparks21 force-pushed the map2-support-varargs-functions branch from 040a47e to feef8fc Compare March 12, 2024 18:57
@davidparks21
Copy link
Contributor Author

davidparks21 commented Mar 13, 2024

I fixed the bug, this branch is ready to merge. This PR is just small improvements to map2 so that it supports functions with **kwargs definitions such as cached_load_data uses now. @DailyDreaming

Copy link
Member

@DailyDreaming DailyDreaming left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for adding testing!

@DailyDreaming DailyDreaming merged commit 54d3d13 into master May 22, 2024
19 checks passed
@DailyDreaming DailyDreaming deleted the map2-support-varargs-functions branch May 22, 2024 22:19
@atspaeth atspaeth mentioned this pull request May 24, 2024
atspaeth pushed a commit that referenced this pull request Jun 7, 2024
* updated map2 to support vararg functions

* updated map2 to support vararg functions

minor

updated map2 to support vararg functions

minor

* Fixed new bug found and added unit tests
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