NyanFisher · GitHub

@NyanFisher

@NyanFisher NyanFisher changed the title Implement quantization for Decimal type when encode Draft: Implement quantization for Decimal type when encode

Feb 11, 2026

@NyanFisher

@NyanFisher NyanFisher changed the title Draft: Implement quantization for Decimal type when encode Implement quantization for Decimal type when encode

Feb 11, 2026

@NyanFisher

@NyanFisher

@NyanFisher

@NyanFisher NyanFisher changed the title Implement quantization for Decimal type when encode Draft: Implement quantization for Decimal type when encode

Apr 27, 2026

@NyanFisher NyanFisher changed the title Draft: Implement quantization for Decimal type when encode Add callable support for decimal_format option

Apr 28, 2026

@NyanFisher

Siyet

@NyanFisher

@NyanFisher

@NyanFisher

@NyanFisher

@NyanFisher

@NyanFisher

sobolevn

@NyanFisher

- Add in_decimal_callable flag to EncoderState to track when we're
  inside a decimal_format callable
- Raise TypeError if decimal_format callable returns a value containing
  a Decimal (would cause infinite recursion)
- Add documentation with examples for decimal_format callable usage
- Update stubs to allow Any return type from decimal_format callable

@NyanFisher

@NyanFisher

sobolevn

@NyanFisher

@NyanFisher

sobolevn

@NyanFisher

@NyanFisher

@Siyet

@Siyet

@Siyet Siyet mentioned this pull request

Jul 2, 2026

Open

@Siyet

@Siyet Siyet mentioned this pull request

Jul 3, 2026

Merged

pull Bot pushed a commit to Future-Outlier/msgspec that referenced this pull request

Jul 3, 2026
Batches the changelog entries accumulated since the 0.21.1 release,
following the usual pre-release batching practice (like msgspec#1020). Covers
merged user-facing changes through msgspec#1109/msgspec#978/msgspec#1105; internal
CI/benchmarking/test-infra changes are intentionally omitted. Also
records the move to the msgspec GitHub organization.
---------
Co-authored-by: Siyet <Siyet@users.noreply.github.com>

Read the original on github.com ↗