Skip to content

Commit 35798dd

Browse files
andystaplesCopilot
andcommitted
docs: remove MutableMapping support row
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 61dfe7a commit 35798dd

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎docs/serialization.md‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ types; equivalent `typing` aliases with the same origin are also recognized.
7575
| `tuple[T, ...]`, `tuple[T1, T2]` | Coerces elements; discovery needs a reconstructable element. |
7676
| `Optional[T]` | Non-`None` values use `T`; discovery follows `T`. |
7777
| `set[T]`, `frozenset[T]`, `Set[T]` | Generic reconstruction is opt-in; see below. |
78-
| `MutableMapping[str, T]`, `MutableSequence[T]` | Not discovered or traversed; values stay raw. |
7978

8079
JSON object keys remain strings; mapping value annotations do not coerce keys.
8180
The converter recognizes the listed container origins, not arbitrary related
@@ -151,10 +150,9 @@ does not add reconstruction. The
151150
[custom converter example](../examples/custom_data_converter/README.md) shows
152151
delegation and explains its top-level generic limitation.
153152

154-
For example, where appropriate, `dict[str, Order]` and `list[Order]` annotations
155-
can be used instead of `MutableMapping[str, Order]` and
156-
`MutableSequence[Order]`. Changing existing annotations can affect replay, so
157-
apply the upgrade precautions above.
153+
Where appropriate, an annotation listed in the support table can be used
154+
instead. Changing existing annotations can affect replay, so apply the upgrade
155+
precautions above.
158156

159157
Keep custom serialization deterministic and configure compatible converters on
160158
both clients and workers that exchange durable payloads.

0 commit comments

Comments
 (0)