python-attrs
cattrs
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Disambiguate unions independent of member class order create_default_dis_func resolved unique discriminator fields in a single fixed-order pass: for each class it subtracted the fields of every not-yet-pinned class, so a class whose fields were all shared with another unpinned class got no unique field and was forced into the single fallback slot. A second such class then raised TypeError, even when a valid assignment existed. Because the order was fixed up front, whether it was found depended on the order the classes were passed in. Resolve unique fields iteratively to a fixpoint instead: on each pass, pin every class that has a non-default field unique among the classes not yet pinned; pinning a class can make a previously ambiguous one uniquely identifiable, so repeat until a pass pins nothing. The single class that still cannot be pinned becomes the fallback, and more than one is a genuine ambiguity (still a TypeError). Fixes #230.
main
22 days ago
Fix typos in comments and documentation Fix minor spelling errors found by codespell: "homogenous" -> "homogeneous", "heterogenous" -> "heterogeneous", "overrrides" -> "overrides", and "sublcasses" -> "subclasses" in docstrings and inline comments across the source files.
main
24 days ago
Fix typos in comments and documentation Fix minor spelling errors found by codespell: "homogenous" -> "homogeneous", "heterogenous" -> "heterogeneous", "overrrides" -> "overrides", and "sublcasses" -> "subclasses" in docstrings and inline comments across the source files.
maxtaran2010:fix/typos
24 days ago
Disambiguate unions independent of member class order create_default_dis_func resolved unique discriminator fields in a single fixed-order pass: for each class it subtracted the fields of every not-yet-pinned class, so a class whose fields were all shared with another unpinned class got no unique field and was forced into the single fallback slot. A second such class then raised TypeError, even when a valid assignment existed. Because the order was fixed up front, whether it was found depended on the order the classes were passed in. Resolve unique fields iteratively to a fixpoint instead: on each pass, pin every class that has a non-default field unique among the classes not yet pinned; pinning a class can make a previously ambiguous one uniquely identifiable, so repeat until a pass pins nothing. The single class that still cannot be pinned becomes the fallback, and more than one is a genuine ambiguity (still a TypeError). Fixes #230.
vineethsaivs:fix/disambiguate-order-independent
28 days ago
Add Decimal support to json and pyyaml preconf converters (closes #761) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Binilkks:fix/decimal-preconf-support
1 month ago
fix: unstructure enum values through the converter recursively When an enum's members have other enums (or complex types) as their values—and the enum has no `_value_` type annotation—`enum_unstructure_factory` returned `e.value` directly instead of running it through the converter. This caused enum-valued enums to produce non-JSON-serializable objects (the raw nested Enum) instead of the fully unstructured result. The typed-enum branch already called `converter.unstructure(e.value)`. Apply the same approach unconditionally: the distinction between typed and untyped enum is not needed for unstructuring, since both paths call `converter.unstructure`. Fixes #679.
gaoflow:fix-679-enum-value-enum-unstructure
1 month ago
Fix msgspec optimizations on 3.14
main
2 months ago
Fix msgspec optimizations on 3.14
tin/fix-recursive-msgspec
2 months ago
Latest Branches
CodSpeed Performance Gauge
0%
Fix typos in comments and documentation
#766
24 days ago
dadcc90
maxtaran2010:fix/typos
CodSpeed Performance Gauge
0%
Disambiguate unions independent of member class order (#230)
#765
28 days ago
b2d0716
vineethsaivs:fix/disambiguate-order-independent
CodSpeed Performance Gauge
0%
Add Decimal support to json and pyyaml preconf converters
#764
1 month ago
8c04cdb
Binilkks:fix/decimal-preconf-support
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs