Skip to content

fix: add missing return type hints on generator functions in text_utils.py (fixes #2330)#2372

Open
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-2330-type-hints
Open

fix: add missing return type hints on generator functions in text_utils.py (fixes #2330)#2372
hanhan761 wants to merge 1 commit into
microsoft:mainfrom
hanhan761:fix-2330-type-hints

Conversation

@hanhan761
Copy link
Copy Markdown

Summary

Add missing return type hints to two generator functions in \ ext_utils.py.

Changes

  • \�atched(iterable, n): -> Iterator[tuple]\
  • \chunk_text(text, max_tokens, tokenizer): -> Iterator[str]\

Issue

Fixes #2330

Verification

  • Annotation-only change, zero runtime impact
  • \collections.abc.Iterator\ already imported

@hanhan761 hanhan761 requested a review from a team as a code owner May 30, 2026 08:40
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.

Missing return type hints on generator functions in query/llm/text_utils.py

1 participant