Skip to content

[save] safety_first translates only str values - #3256

Merged
saulpw merged 2 commits into
developfrom
safety-typed
Oct 19, 2026
Merged

saulpw merged 2 commits into
developfrom
safety-typed

Conversation

@saulbert

@saulbert saulbert commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

With safety_first on, iterdispvals added the newline/tab translate step to every column, including on the format=False path. Non-str values threw, and the except fell back to str(value), so typed savers (npy, arrow, parquet, xlsx, vds) saved ints, floats and dates as strings. npy then crashed with AttributeError: 'str' object has no attribute 'isoformat' on date columns.

Now the translate applies only to str values.

AI Level: 7 (Claude Opus 5.5 via Claude Code; requirements from @saulpw, not yet line-reviewed)

🤖 Generated with Claude Code

saulbert and others added 2 commits October 19, 2026 16:23
With safety_first on, iterdispvals added the newline/tab translate to
every column, so typed savers (npy, arrow, parquet, xlsx, vds) saved
ints, floats and dates as strings, and npy crashed calling isoformat()
on a date that had become a str.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@saulpw
saulpw merged commit bf35452 into develop Oct 19, 2026
12 checks passed
@saulpw
saulpw deleted the safety-typed branch October 19, 2026 23:37
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.

2 participants