aiohttp has inline type distribution, and this import case is due to a Python convention on public and private symbol interfaces, given at Distributing type information
In short, aiohttp tells linters that those symbols will be re-exported and should be treated as public.