Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: handle list output from group_bullet_paragraph in element apply()#4253

Open
s0wa48 wants to merge 1 commit intoUnstructured-IO:mainfrom
s0wa48:fix/issue-2547-bug-group-bullet-paragraph-cau
Open

fix: handle list output from group_bullet_paragraph in element apply()#4253
s0wa48 wants to merge 1 commit intoUnstructured-IO:mainfrom
s0wa48:fix/issue-2547-bug-group-bullet-paragraph-cau

Conversation

@s0wa48
Copy link

@s0wa48 s0wa48 commented Feb 21, 2026

Summary

  • group_bullet_paragraph returns a List[str] but Text.apply() expects cleaners to return str
  • When group_bullet_paragraph is passed as a post-processor, apply() raises a ValueError because the output is a list
  • This fix joins the list elements with a space when the cleaner returns a list, before the isinstance check for str

Fixes #2547


This PR was auto-generated by Gittensor bot using Claude AI to fix a reported issue.

@s0wa48 s0wa48 force-pushed the fix/issue-2547-bug-group-bullet-paragraph-cau branch from 7696363 to 32035d7 Compare February 24, 2026 15:59
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.

bug/group_bullet_paragraph causes problems by returning a list

1 participant