(debug_data)
| 125 | |
| 126 | |
| 127 | def debug_datasource(debug_data) -> StaticDataSource | None: |
| 128 | if debug_data is None: |
| 129 | return None |
| 130 | elif isinstance(debug_data, pd.DataFrame): |
| 131 | return PandasDataSource( |
| 132 | data=debug_data.copy(), schema=schema_from_pandas(debug_data) |
| 133 | ) |
| 134 | else: |
| 135 | raise TypeError("not supported type of debug data") |
| 136 | |
| 137 | |
| 138 | @dataclass(frozen=True) |
nothing calls this directly
no test coverage detected