| 13 | |
| 14 | |
| 15 | class SetEncoder(json.JSONEncoder): |
| 16 | def default(self, obj): |
| 17 | if isinstance(obj, set): |
| 18 | return list(obj) |
| 19 | return json.JSONEncoder.default(self, obj) |
| 20 | |
| 21 | |
| 22 | # Used for MBPP as MBPP's prompt is not a formal function signature |
nothing calls this directly
no outgoing calls
no test coverage detected