(state)
| 77 | |
| 78 | |
| 79 | def state_to_plain(state) -> dict[str, Any]: |
| 80 | return { |
| 81 | "step": to_plain(getattr(state, "step", None)), |
| 82 | "relative_time": to_plain(getattr(state, "relative_time", None)), |
| 83 | "current_offer": offer_to_plain(getattr(state, "current_offer", None)), |
| 84 | } |
| 85 | |
| 86 | |
| 87 | def offer_to_plain(offer): |
no test coverage detected