Skip to content

Reject non-lowercase special float literals - #628

Open
Boulea7 wants to merge 1 commit into
python-poetry:masterfrom
Boulea7:ln-cx/tomlkit-special-float-case
Open

Boulea7 wants to merge 1 commit into
python-poetry:masterfrom
Boulea7:ln-cx/tomlkit-special-float-case

Conversation

@Boulea7

@Boulea7 Boulea7 commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Reject signed special float spellings such as +NaN and -Inf, which TOML 1.1 requires to be lowercase. Valid signed inf/nan, uppercase exponents, base-prefixed numbers, and original formatting still round-trip unchanged.

Validation: 1,124 tests passed; Ruff lint and formatting passed. Mypy retains 29 errors also reproduced on the unmodified base.

Agent Drafting Metadata

  • Agent: Codex
  • Model: GPT-6.1 Sol; GPT-6 Luna (research)
  • Notes: AI-assisted implementation, regression tests, and PR drafting.

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.

1 participant