(cc_list: list[str])
| 40 | return resp.content |
| 41 | |
| 42 | def download_many(cc_list: list[str]) -> int: # <10> |
| 43 | for cc in sorted(cc_list): # <11> |
| 44 | image = get_flag(cc) |
| 45 | save_flag(image, f'{cc}.gif') |
| 46 | print(cc, end=' ', flush=True) # <12> |
| 47 | return len(cc_list) |
| 48 | |
| 49 | def main(downloader: Callable[[list[str]], int]) -> None: # <13> |
| 50 | DEST_DIR.mkdir(exist_ok=True) # <14> |