Summary
from typing import Union, Any
def f1(a: "Union[str, bytes, Any]") -> None: ... # causes ANN401
def f2(a: "Union[str, bytes, A" "ny]") -> None: ... # no lint
https://play.ruff.rs/e35cf953-b4be-467b-96d9-c4639fe736f9
Arguably, f2 should also be flagged with ANN401.
Version
v0.12.2