Skip to content

Conversation

@tony
Copy link
Member

@tony tony commented Dec 6, 2025

No description provided.

tony added 7 commits December 6, 2025 07:15
why: sphinx-autodoc-typehints injecting :type: fields causes RST
"Unexpected indentation" errors with Napoleon-processed docstrings
what:
- Set always_document_param_types = False
- Complements existing autodoc_typehints = "signature" setting
why: Injected :rtype: fields cause RST parsing conflicts with
Napoleon-processed docstrings
what:
- Set typehints_document_rtype = False
- Ensures all type hints appear in signature only, not docstring body
why: Types in TYPE_CHECKING blocks for circular import avoidance
generate cosmetic warnings that clutter build output
what:
- Add suppress_warnings list with forward_reference filter
@codecov
Copy link

codecov bot commented Dec 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.24%. Comparing base (879271d) to head (e315633).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #490      +/-   ##
==========================================
+ Coverage   78.81%   79.24%   +0.42%     
==========================================
  Files          14       15       +1     
  Lines        1940     1980      +40     
  Branches      404      404              
==========================================
+ Hits         1529     1569      +40     
  Misses        267      267              
  Partials      144      144              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tony added a commit that referenced this pull request Dec 6, 2025
why: Document the sphinx-autodoc-typehints configuration changes
that fix "Unexpected indentation" errors in documentation build
what:
- Add Documentation section to v1.49.x unreleased
- Note the param/rtype injection and forward reference fixes
@tony
Copy link
Member Author

tony commented Dec 6, 2025

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

🤖 Generated with Claude Code

tony added 2 commits December 6, 2025 10:37
…ypehints

why: Types in TYPE_CHECKING blocks (used for circular import avoidance)
cause sphinx-autodoc-typehints to emit warnings about unresolvable forward
references. These warnings are expected and safe to suppress.
what:
- Add suppress_warnings config for sphinx_autodoc_typehints.forward_reference
why: Document the sphinx-autodoc-typehints configuration changes
that fix "Unexpected indentation" errors in documentation build
what:
- Add Documentation section to v1.49.x unreleased
- Note the param/rtype injection and forward reference fixes
@tony tony merged commit 4b87891 into master Dec 6, 2025
9 checks passed
@tony tony deleted the docstring-fixes branch December 6, 2025 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants