pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

docs: improve visibility of return type inference option (fixes #1492)

Open f1sherFM opened this issue 6 months ago • 1 comments

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-defs section pointing to infer-return-types.
  • Added a :::tip block 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.mdx to ensure formatting matches project standards.
  • Reviewed the changes locally to verify correct Markdown syntax and link resolution.

f1sherFM avatar May 18 '26 14:05 f1sherFM

@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.

f1sherFM avatar May 19 '26 13:05 f1sherFM

@samwgoldman has imported this pull request. If you are a Meta employee, you can view this in D105726289.

meta-codesync[bot] avatar May 19 '26 18:05 meta-codesync[bot]

@samwgoldman merged this pull request in facebook/pyrefly@1bb570b0939d83871669f6f4a6cb9ce3dc08355e.

meta-codesync[bot] avatar May 19 '26 19:05 meta-codesync[bot]