spekk.trees.registry.dispatch_by_duck_type#
- spekk.trees.registry.dispatch_by_duck_type(tree: Mapping[Any, Mapping[Any, Tree] | Sequence[Tree] | Any] | Sequence[Mapping[Any, Tree] | Sequence[Tree] | Any] | Any)[source]#
Given a tree, return a
TreeDefif it has the required dunder-methods. SeeDuckTypedTreeDeffor more details.