Skip to content

Conversation

@dimitri-yatsenko
Copy link
Member

Summary

  • Fix make_kwargs not being passed to make_fetch when using the tripartite (generator) pattern

Problem

When using generator-based make with make_fetch, make_compute, and make_insert, the make_kwargs parameter passed to populate() was not forwarded to make_fetch(). This caused a TypeError when users tried to pass keyword arguments to their tripartite make implementation.

Solution

  • Updated make(self, key) to make(self, key, **kwargs)
  • Forward **kwargs to self.make_fetch(key, **kwargs)
  • Updated docstring to document the kwargs parameter

Fixes #1350

🤖 Generated with Claude Code

When using generator-based make (make_fetch, make_compute, make_insert),
make_kwargs passed to populate() were not being forwarded to make_fetch.
This caused TypeError when using make_kwargs with the tripartite pattern.

Fixes #1350

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-actions github-actions bot added bug Indicates an unexpected problem or unintended behavior enhancement Indicates new improvements labels Jan 30, 2026
- test_make_kwargs_regular: verifies make_kwargs passed to regular make
- test_make_kwargs_tripartite: verifies make_kwargs passed to make_fetch
  in the tripartite (generator) pattern (regression test for #1350)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dimitri-yatsenko dimitri-yatsenko merged commit 354976a into master Jan 30, 2026
8 checks passed
@dimitri-yatsenko dimitri-yatsenko deleted the fix/make-kwargs-tripartite-master branch January 30, 2026 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Indicates an unexpected problem or unintended behavior enhancement Indicates new improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: make_kwargs does not work for generator make

3 participants