Summary
from __future__ import annotations
from collections.abc import AsyncGenerator, Iterable
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import AsyncGenerator, Iterable
async def foo(bar: Iterable[int]) -> AsyncGenerator[int]:
pass
https://play.ruff.rs/5b99b487-12b4-45f7-b212-b8e5bdfc63bd
The from collections.abc import is repeated inside and outside the if TYPE_CHECKING block. I expected this to trigger some combination of TC003 and/or F811, but Ruff doesn't report any errors.
Version
0.11.6