Skip to content

Commit ae35e1e

Browse files
committed
chore: initialize features variable
1 parent 6de8d5d commit ae35e1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/datasets/arrow_writer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ def close(self):
431431

432432
def _build_schema(self, inferred_schema: pa.Schema):
433433
schema = self.schema
434+
features = self._features
434435
inferred_features = Features.from_arrow_schema(inferred_schema)
435436
if self._features is not None:
436437
if self.update_features: # keep original features it they match, or update them

0 commit comments

Comments
 (0)