Skip to content

Commit 4b7c853

Browse files
committed
chore: initialize features variable
1 parent 3366fb6 commit 4b7c853

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
@@ -430,6 +430,7 @@ def close(self):
430430

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

0 commit comments

Comments
 (0)