Skip to content

Fix/type hints list to sequence#8198

Open
AtreoP wants to merge 7 commits into
huggingface:mainfrom
AtreoP:fix/type-hints-list-to-sequence
Open

Fix/type hints list to sequence#8198
AtreoP wants to merge 7 commits into
huggingface:mainfrom
AtreoP:fix/type-hints-list-to-sequence

Conversation

@AtreoP
Copy link
Copy Markdown

@AtreoP AtreoP commented May 15, 2026

Fix #5354 Consider using "Sequence" instead of "List"
In datasets/arrow_writer.py, replaced all the type annotations of List method with Sequence.
Library used and changes made are as follows:

   from collections.abc import Sequence as Sequence_
   Before : List(Image())
   After : Sequence_(Image())
 

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.

Consider using "Sequence" instead of "List"

1 participant