there seems to be some confusion regarding the different methods of installing an editable package. from what i can tell, uv's build backend uses .pth files by default instead of import hooks. however the pyright documentation was recently updated to state that passing { editable_mode = "compat" } to uv's build backend is necessary to enable this behavior. as far as i can tell, this is only necessary when using setuptools as the build backend.
i think it would be a good idea to document editable installs somewhere here. i saw this section but i think that's only talking about the frontend