(it: "Iterator[PatchEntry]")
| 228 | |
| 229 | |
| 230 | def build_patch_dict(it: "Iterator[PatchEntry]") -> Patches: |
| 231 | patches = collections.defaultdict(lambda: collections.defaultdict(list)) |
| 232 | for entry in it: |
| 233 | patches[entry.parent_class][entry.test_name].append(entry.spec) |
| 234 | |
| 235 | return {k: dict(v) for k, v in patches.items()} |
| 236 | |
| 237 | |
| 238 | def extract_patches(contents: str) -> Patches: |
no test coverage detected