-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix type_annotation_transforms for Sphinx 6 #181
Conversation
0f704a2
to
7faeee7
Compare
7faeee7
to
2837128
Compare
Instead of intercepting the call to `ast.parse`, we now parse, transform, and then unparse. This also drops support for Python 3.7, since Sphinx 6 also drops Python 3.7 support.
Previously, mypy issued the following warning regarding _render_body: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs [annotation-unchecked]
2837128
to
fa5aac8
Compare
fa5aac8
to
47c3bc5
Compare
I think I've fixed all of the typing issues now. Unfortunately the setup-graphviz seems to be failing now on macOS, not sure how we can work around that. |
There seems to be a conflict between the installed python and the python homebrew tries to install. Although I can't clearly tell what the problem is. My instinct is to setup-graphviz before setup-python in the CI. |
We might be able to get graphviz through conda-forge instead of OS-specific pkg managers (like the current action does). |
Damn. I still have no idea what the problem is based on the homebrew output. |
5540102
to
1621013
Compare
1621013
to
6a4fe0b
Compare
I think this is a general issue with using homebrew on github actions. Reordering the graphviz step before the Python setup step did not fix the issue, but skipping |
Perhaps we should tag a new version with Sphinx 6 support? |
sure, but I was thinking a patch bump. |
No description provided.