ty
ty copied to clipboard
Go to Definition not working for stringified nested class
Summary
class Foo:
class Bar:
customer: str
def f(p: "Foo.Bar"): ...
# ^^^ goto-def doesn't work
f(Foo.Bar())
https://play.ty.dev/5f9d19ff-1647-4de6-98b9-bee5b961ec1f
Version
30c3f9aaf
I think this would be fixed by https://github.com/astral-sh/ruff/pull/21758 (CC: @Gankra)