-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Checking Sphinx with Pyrefly #13578
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
Comments
Thanks @stroxler, would love to help with this! cc frequent typing contributors @danieleades @adamtheturtle Also cross-referencing the pyrefly quickstart for Sphinx I wrote up in facebook/pyrefly#285 (comment). Edit: I've opened #13579 to add the A |
With regard to the quickstart, this (or something like it) should work too:
Which translates to "run |
Awesome, thanks! I have a backlog of issues to work on coming out of PyCon, but my hope is to soon start focusing on a couple of key projects to drive Pyrefly bugfixes and features. I intend to make Sphinx one of them - it seems like a great codebase and for the most part less prone to edge cases than (for example) tools in the Pytorch ecosystem. I expect to need some discussion here when I run into cases we aren't sure about supporting. Just as an example of where I expect to need some back-and-forth with you, one thing I noticed right off the bat was the use of a with (
open(output_text, 'w', encoding='utf-8') as self.txt_outfile,
open(output_json, 'w', encoding='utf-8') as self.json_outfile,
):
... code calls methods, which can then implicitly get context managers via `self` ... in |
We noticed a run of bug reports from @AA-Turner on Pyrefly from testing on Sphinx, thanks for these!
Would you be interested in us focusing effort toward making Pyrefly usable on Sphinx?
If so, filing and fixing the bugs (as well as discussing situations where Pyrefly currently objects to the existing patterns) is something we'd be happy to take on, and we could use this issue both to link the Pyrefly bug reports and track progress.
Thanks again for the bug reports so far! At this stage I think the top overall issue is improving overload support, which we hope to re-focus on in the next week or two.
The text was updated successfully, but these errors were encountered: