pyrefly
pyrefly copied to clipboard
docs: improve visibility of return type inference option (fixes #1492)
Summary
This PR improves the discoverability of the infer-return-types configuration option in the documentation, addressing issue #1492.
Changes:
- Updated the section heading to include "(Return Type Inference)" so users searching for these terms can find the option easily.
- Added a cross-reference link in the
check-unannotated-defssection pointing toinfer-return-types. - Added a
:::tipblock with a concrete example showing how to disable return type inference (infer-return-types = "never"), which is a common use case mentioned in the issue.
Fixes #1492
Test Plan
- Ran
npx prettier --write website/docs/configuration.mdxto ensure formatting matches project standards. - Reviewed the changes locally to verify correct Markdown syntax and link resolution.
@rchen152 I've addressed all your comments — the PR is ready for another review. Thanks for your time and guidance! I'm happy to take on new tasks if you have something in mind.
@samwgoldman has imported this pull request. If you are a Meta employee, you can view this in D105726289.
@samwgoldman merged this pull request in facebook/pyrefly@1bb570b0939d83871669f6f4a6cb9ce3dc08355e.