(self, key: str, context: Context)
| 277 | context.node._visit_node(context) |
| 278 | |
| 279 | def __visit_dict(self, key: str, context: Context): |
| 280 | value = context.node[key] |
| 281 | |
| 282 | if type(value) == dict and len(value) == 1 and value.get("_type") == "Load": |
| 283 | return |
| 284 | elif type(value) in (tuple, list) and len(value) == 0: |
| 285 | return |
| 286 | |
| 287 | context.visit_child( |
| 288 | node=context.node[key], |
| 289 | replace=partial(self._replace_generic, key=key, context=context), |
| 290 | ) |
| 291 | |
| 292 | def __visit_list(self, idx: int, item, context: Context): |
| 293 | context.visit_child( |
no test coverage detected