(label: str, items: List[Any], max_items: int)
| 234 | |
| 235 | |
| 236 | def print_list(label: str, items: List[Any], max_items: int) -> None: |
| 237 | print(f"{label}: {len(items)}") |
| 238 | for item in items[:max_items]: |
| 239 | print(f" - {item}") |
| 240 | if len(items) > max_items: |
| 241 | print(f" ... ({len(items) - max_items} more)") |
| 242 | |
| 243 | |
| 244 | def main() -> None: |