(client: AsyncClient, cc: str)
| 24 | return cc |
| 25 | |
| 26 | async def get_flag(client: AsyncClient, cc: str) -> bytes: # <4> |
| 27 | url = f'{BASE_URL}/{cc}/{cc}.gif'.lower() |
| 28 | resp = await client.get(url, timeout=6.1, |
| 29 | follow_redirects=True) # <5> |
| 30 | return resp.read() # <6> |
| 31 | # end::FLAGS_ASYNCIO_TOP[] |
| 32 | |
| 33 | # tag::FLAGS_ASYNCIO_START[] |
no test coverage detected