File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 2.11rc1
2+ =======
3+
4+ Changes
5+ -------
6+
7+ - Redesign of the type to field resolution used in Annotated Resources. Updated to work with more modern typing
8+
9+ - Support the use of `int | None` or (`None | int`) instead of `Optional[int]`
10+
11+ - Support the use of `list[]`, `dict[]` subtypes
12+
13+ - Support the use of `my_field: Annotated[int, Options{}] = 42` style
14+
15+ - ResourceDefError now includes the field name that failed to be resolved.
16+
17+ - Removed the deprecated `utils.lazy_property` (replace with `functools.cached_property`)
18+
19+ - Update testing to cover Python 3.10, 3.11, 3.12 and 3.13
20+
21+
22+ Bugfix
23+ ------
24+
25+ - functools.partial can used when registering types for type resolution
26+
27+ - Options.validators now defaults to an empty list (caused an issue adding validators)
28+
29+
30+
1312.10
232====
333
@@ -21,11 +51,10 @@ Changes
2151 ResourceObjects now includes a shadow_fields listing all fields shadowed by this
2252 resource.
2353
24-
2554Bugfix
2655------
2756
28- - ResourceOptions.abstract flag was not being set for abstract AnnotatedResrouces .
57+ - ResourceOptions.abstract flag was not being set for abstract AnnotatedResources .
2958
3059
31602.9
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44
55[tool .poetry ]
66name = " odin"
7- version = " 2.10 "
7+ version = " 2.11rc1 "
88description = " Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python"
99authors = [" Tim Savage <tim@savage.company>" ]
1010license = " BSD-3-Clause"
You can’t perform that action at this time.
0 commit comments