(context)
| 105 | |
| 106 | |
| 107 | def wrap_with_dict(context): |
| 108 | if context is None: |
| 109 | return {} |
| 110 | elif isinstance(context, list): |
| 111 | return { |
| 112 | EMPTY_STRING: NestedJSONArray(context), |
| 113 | } |
| 114 | else: |
| 115 | assert isinstance(context, dict) |
| 116 | return context |
| 117 | |
| 118 | |
| 119 | def unwrap_top_level_list_if_needed(data: dict): |
no test coverage detected