(value: Any, recurse: Callable[[Any], Any])
| 302 | } |
| 303 | |
| 304 | def _strategy_serializer(value: Any, recurse: Callable[[Any], Any]) -> Optional[Any]: |
| 305 | if isinstance(value, Strategy): |
| 306 | payload = {f.name: recurse(getattr(value, f.name)) for f in fields(value)} |
| 307 | return {"type": type(value).__name__, "params": payload} |
| 308 | return None |
| 309 | |
| 310 | _CONFIG_SERIALIZERS = [_strategy_serializer] |
| 311 |
nothing calls this directly
no outgoing calls
no test coverage detected