Skip to content

Fix: Resolve Sequence type hints and add from_jsonl alias (#5354)#8321

Open
2k33cse992574 wants to merge 1 commit into
huggingface:mainfrom
2k33cse992574:fix/5354-type-hint-sequence
Open

Fix: Resolve Sequence type hints and add from_jsonl alias (#5354)#8321
2k33cse992574 wants to merge 1 commit into
huggingface:mainfrom
2k33cse992574:fix/5354-type-hint-sequence

Conversation

@2k33cse992574

Copy link
Copy Markdown

Fixes #5354

Proposed Changes

  • Updates features typing to use Sequence instead of List/Tuple in from_json and from_parquet parsing functions.
  • Adds from_jsonl as an explicit wrapper to from_json for dataset creation, providing API symmetry with to_jsonl.
  • Includes dedicated tests for the new from_jsonl alias in all standard loaders.

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