Skip to content

Conversation

@TimMonko
Copy link
Member

@TimMonko TimMonko commented Dec 1, 2025

This pull request adds a new test to demonstrate and recommend using keyword arguments (kwargs) as a cleaner alternative to functools.partial when passing extra arguments to batch processing functions. This helps clarify best practices for writing batch tests and ensures both approaches produce identical results.

Testing improvements:

  • Added test_kwargs_replaces_partial to tests/test_runner.py to demonstrate and recommend using kwargs instead of functools.partial for passing extra arguments to batch functions. The test confirms that both approaches yield the same results, but highlights kwargs as the cleaner pattern.

@TimMonko TimMonko merged commit bb1b2ab into ndev-kit:main Dec 1, 2025
14 checks passed
@TimMonko TimMonko deleted the feat/kwargs-partial branch December 1, 2025 17:31
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.

1 participant