(kind: PathAction)
| 58 | ) |
| 59 | |
| 60 | def object_for(kind: PathAction) -> Any: |
| 61 | if kind is PathAction.KEY: |
| 62 | return {} |
| 63 | elif kind in {PathAction.INDEX, PathAction.APPEND}: |
| 64 | return [] |
| 65 | else: |
| 66 | assert_cant_happen() |
| 67 | |
| 68 | for index, (path, next_path) in enumerate(zip(paths, paths[1:])): |
| 69 | # If there is no context yet, set it. |
no test coverage detected