Skip to content

Commit 86dcc93

Browse files
committed
Bump version and update history
1 parent e847852 commit 86dcc93

2 files changed

Lines changed: 32 additions & 3 deletions

File tree

HISTORY

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
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+
131
2.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-
2554
Bugfix
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

3160
2.9

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "odin"
7-
version = "2.10"
7+
version = "2.11rc1"
88
description = "Data-structure definition/validation/traversal, mapping and serialisation toolkit for Python"
99
authors = ["Tim Savage <tim@savage.company>"]
1010
license = "BSD-3-Clause"

0 commit comments

Comments
 (0)