astral-sh/ruff#16901 implemented basic goto type definition support. However, there are still a handful of nodes that have identifier children for which goto type definition doesn't work because the enclosing node isn't an expression or a definition. We should add support for goto type definition for those nodes as well.
See the TODO comments in ty_ide::goto::GotoTarget::inferred_type
Status: