2026.04.21¶
Added a per-language
Modifiersenum exposed on each language class (alongsideDateFormats,SequenceFormats, etc.).Java.ModifiershasPUBLIC/PRIVATE/PROTECTED/STATIC/FINAL;CSharp.ModifiersaddsCONSTandREADONLY;Cpp.ModifiershasSTATIC/CONST. Languages without modifier vocabulary expose an emptyModifiersenum.NewVariableandBothVariableFormsnow accept amodifierskeyword argument. Values that are not members of the target language’sModifiersenum are silently ignored, matching how other language format enums behave.Removed automatic coercion of heterogeneous data to strings. The
error_on_coercionparameter has been removed fromliteralize;literalizenow always raises a subclass ofHeterogeneousCollectionErrorwhen the data cannot be represented in the target language’s collection formats.Replaced
HeterogeneousCoercionErrorwith precise exceptions:HeterogeneousCollectionError(base class),HeterogeneousScalarCollectionError,HeterogeneousSiblingListsError,MixedDictValuesError,MixedListValuesError,MixedDictShapesError, andHeterogeneousSetError.Renamed
SetFormatConfig.coerce_mixed_to_strtoSetFormatConfig.supports_heterogeneity(with inverted semantics).