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
Handle forward refs in base types and improve logic that determines the item or key/value type in the CollectionConverter and MappingConverter respectively (#52)
* fix: Fixed serde of types that have a parameterized generic base class. (First reported in NiklasRosenstein/pydoc-markdown#292)
* tests: Add a unit tests to demonstrate that deserializing a nested type cannot work.
* Properly infer item type for collections in the `CollectionConverter`, do not assume `Any` for un-parameterized collections.
* Improve logic to find item type of collection in `CollectionConverter`
* databind.core/: improvement: Work around highly nested error tracebacks in `Module.convert()` by expanding all converters returned by `Module.get_converter()`. Note that this means `Module.convert()` is no longer called if the module is a child of another module.
* databind.core/: improvement: Add `DelegateToClassmethodConverter(serialized_type)` parameter.
* databind.json/: improvement: The `MappingConverter` now does improved resolution of the key and value type just like the `CollectionConverter`; note that an unparameterized Mapping no longer has its key and value type fall back to `typing.Any`
* databind.json/: improvement: Use `ConversionError.expected()` factory function in `PlainDatatypeConverter`
* databind.json/: tests: Test `JsonConverter`
* Updated PR references in 5 changelogs.
skip-checks: true
---------
Co-authored-by: GitHub Action <[email protected]>
description = "Work around highly nested error tracebacks in `Module.convert()` by expanding all converters returned by `Module.get_converter()`. Note that this means `Module.convert()` is no longer called if the module is a child of another module."
description = "Technically a breaking change, but any consumer who is relying on this behaviour probably does that implicitly and wants to change their code anyway. o_o -- The `CollectionConverter` no longer implicitly assumes `Any` as the item type if collection is not parameterized."
description = "The `MappingConverter` now does improved resolution of the key and value type just like the `CollectionConverter`; note that an unparameterized Mapping no longer has its key and value type fall back to `typing.Any`"
0 commit comments