(files)
| 123 | |
| 124 | |
| 125 | def expand_glob(files) -> list[Path]: |
| 126 | expanded = [] |
| 127 | for file in files: |
| 128 | path = Path(file) |
| 129 | if path.is_dir(): |
| 130 | expanded.extend(path.glob('**/*.py')) |
| 131 | expanded.extend(path.glob('**/*.cc')) |
| 132 | expanded.extend(path.glob('**/*.h')) |
| 133 | else: |
| 134 | expanded.append(path) |
| 135 | return expanded |
| 136 | |
| 137 | |
| 138 | def format_code_block_with_suggestions( |