You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, thanks for your work on griffe! It's been working really great, so I haven't had much to raise here 😁, but I stumbled on an issue that might be related to setuptools putting annotations in its editable install artifacts.
Description of the bug
Recently, while debugging a doc build for py-shiny, I noticed that the editable finder code was using ast.AnnAssign, while griffe looks for ast.Assign. As best I can tell, this led to griffe not finding the editable shiny install. It appears that griffe looks for an ast.Assign node, which is not a parent of ast.AnnAssign 😢 .
Below are the relevant lines of site-packages/__editable___shiny_0_9_0_9000_finder.py:
Hey, thanks for your work on griffe! It's been working really great, so I haven't had much to raise here 😁, but I stumbled on an issue that might be related to setuptools putting annotations in its editable install artifacts.
Description of the bug
Recently, while debugging a doc build for py-shiny, I noticed that the editable finder code was using
ast.AnnAssign
, while griffe looks forast.Assign
. As best I can tell, this led to griffe not finding the editable shiny install. It appears that griffe looks for anast.Assign
node, which is not a parent of ast.AnnAssign 😢 .Below are the relevant lines of
site-packages/__editable___shiny_0_9_0_9000_finder.py
:To Reproduce
venv/lib/.../__editable__....py
Full traceback
No error was printed, but griffe found the shiny binary, as that was first on
sys.path
.Expected behavior
The shiny module is found from the editable install.
The text was updated successfully, but these errors were encountered: