(stack_trace: Any)
| 152 | |
| 153 | |
| 154 | def _stack_frames(stack_trace: Any) -> list[dict]: |
| 155 | if isinstance(stack_trace, dict): |
| 156 | frames = stack_trace.get("callFrames") |
| 157 | if isinstance(frames, list): |
| 158 | return [frame for frame in frames if isinstance(frame, dict)] |
| 159 | return [] |
| 160 | |
| 161 | |
| 162 | def _format_stack_trace(stack_trace: Any) -> str | None: |
no test coverage detected