ty icon indicating copy to clipboard operation
ty copied to clipboard

Go to Definition not working for stringified nested class

Open steved-stripe opened this issue 2 months ago • 1 comments

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

steved-stripe avatar Dec 17 '25 18:12 steved-stripe

I think this would be fixed by https://github.com/astral-sh/ruff/pull/21758 (CC: @Gankra)

MichaReiser avatar Dec 18 '25 08:12 MichaReiser