(obj)
| 470 | # If this turns out to be not true or it adds more overhead in other scenarios, we should |
| 471 | # revisit this decision and only use "default" argument where needed (aka Workflow models). |
| 472 | def default(obj): |
| 473 | if isinstance(obj, set): |
| 474 | return list(obj) |
| 475 | raise TypeError |
| 476 | |
| 477 | if not self.use_header: |
| 478 | return orjson.dumps(value, default=default) |
nothing calls this directly
no outgoing calls
no test coverage detected