baybe.serialization.core.make_base_structure_hook

baybe.serialization.core.make_base_structure_hook(base: type[_T])[source]

Create a hook for structuring subclasses using annotations of their base class.

Reads the type information from the given input to retrieve the correct subclass and then calls the existing structure hook of the that class.