Was looking at the CPython issue tracker and noticed https://github.com/python/cpython/issues/100930 It looks like `attrs` doesn't do this either. I don't know if this is wanted or whether this can work with `linecache`.