(node)
| 982 | next_cursor = None |
| 983 | |
| 984 | def _walk(node): |
| 985 | nonlocal next_cursor |
| 986 | if isinstance(node, dict): |
| 987 | page_info_node = node.get("page_info") or node.get("pageInfo") |
| 988 | if isinstance(page_info_node, dict): |
| 989 | if page_info_node.get("has_next_page") and page_info_node.get("end_cursor"): |
| 990 | next_cursor = str(page_info_node.get("end_cursor")) |
| 991 | for vv in node.values(): |
| 992 | _walk(vv) |
| 993 | elif isinstance(node, list): |
| 994 | for e in node: |
| 995 | _walk(e) |
| 996 | _walk(data) |
| 997 | cursor = next_cursor |
| 998 | if not cursor: |
nothing calls this directly
no outgoing calls
no test coverage detected