You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/migrations.md
+6
Original file line number
Diff line number
Diff line change
@@ -19,3 +19,9 @@ The old behavior can be restored by explicitly passing in the old hook fallback
19
19
# Or
20
20
>>> c = BaseConverter(structure_fallback_factory=lambda_: raise_error)
21
21
```
22
+
23
+
### `cattrs.gen.MappingStructureFn` and `cattrs.gen.DictStructureFn` removal
24
+
25
+
The internal `cattrs.gen.MappingStructureFn` and `cattrs.gen.DictStructureFn` types were replaced by a more general type, `cattrs.SimpleStructureHook[In, T]`.
26
+
If you were using `MappingStructureFn`, use `SimpleStructureHook[Mapping[Any, Any], T]` instead.
27
+
If you were using `DictStructureFn`, use `SimpleStructureHook[Mapping[str, Any], T]` instead.
0 commit comments