Add all (explicit) sources to the list changed files in place. Use this when re-processing of unchanged files is needed (e.g. for the purpose of exporting types for inspections).
(sources: list[BuildSource], changed: list[tuple[str, str]])
| 1055 | |
| 1056 | |
| 1057 | def add_all_sources_to_changed(sources: list[BuildSource], changed: list[tuple[str, str]]) -> None: |
| 1058 | """Add all (explicit) sources to the list changed files in place. |
| 1059 | |
| 1060 | Use this when re-processing of unchanged files is needed (e.g. for |
| 1061 | the purpose of exporting types for inspections). |
| 1062 | """ |
| 1063 | changed_set = set(changed) |
| 1064 | changed.extend( |
| 1065 | [ |
| 1066 | (bs.module, bs.path) |
| 1067 | for bs in sources |
| 1068 | if bs.path and (bs.module, bs.path) not in changed_set |
| 1069 | ] |
| 1070 | ) |
| 1071 | |
| 1072 | |
| 1073 | def fix_module_deps(graph: mypy.build.Graph) -> None: |
no test coverage detected
searching dependent graphs…