cyrilzhang commited on
Commit
03bcb43
1 Parent(s): 9767815

type check hints for features

Browse files
Files changed (1) hide show
  1. automata.py +3 -3
automata.py CHANGED
@@ -1,5 +1,5 @@
1
  # Copyright 2020 The HuggingFace Datasets Authors.
2
- # Copyright 2023 Cyril Zhang.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
@@ -61,8 +61,8 @@ class MockupDataset(datasets.GeneratorBasedBuilder):
61
  def _info(self):
62
  features = datasets.Features(
63
  {
64
- "x": datasets.Value("null"),
65
- "y": datasets.Value("null")
66
  }
67
  )
68
 
 
1
  # Copyright 2020 The HuggingFace Datasets Authors.
2
+ # Copyright 2023 Bingbin Liu, Jordan Ash, Surbhi Goel, Akshay Krishnamurthy, and Cyril Zhang.
3
  #
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
  # you may not use this file except in compliance with the License.
 
61
  def _info(self):
62
  features = datasets.Features(
63
  {
64
+ "x": datasets.Sequence(datasets.Value("int32"), length=-1),
65
+ "y": datasets.Sequence(datasets.Value("int32"), length=-1)
66
  }
67
  )
68