You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "wenjin272 (via GitHub)" <gi...@apache.org> on 2026/06/08 06:13:37 UTC
[PR] [bugfix][prompts] Fix format_string {text} variable collision [flink-agents]
wenjin272 opened a new pull request, #792:
URL: https://github.com/apache/flink-agents/pull/792
## What is the purpose of the change
Fix #785. `Prompt.format_string(text=...)` raised `TypeError: format_string() got multiple values for argument 'text'` whenever the template used `{text}` (or `{template}`) as a variable, because the internal positional parameter `text` collided with the user-passed kwarg.
## Brief change log
- Rename the positional parameter in `utils.format_string` from `text` to `_template` — internal, non-public, called positionally everywhere, so no compatibility impact.
- Add a regression test covering `{text}`/`{template}` template variables.
## Verifying this change
`python -m pytest flink_agents/api/tests/test_prompt.py` — 7 passed.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [bugfix][prompts] Fix format_string {text} variable collision [flink-agents]
Posted by "wenjin272 (via GitHub)" <gi...@apache.org>.
wenjin272 merged PR #792:
URL: https://github.com/apache/flink-agents/pull/792
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org