sphinx-doc / sphinx-doc/sphinx

Have class attribute types in the same line as the name in docstrings

Open
#10,909 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:proposal
Dominant language
Python
Stars
8k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

Is your feature request related to a problem? Please describe.
For class attributes, instead of:
image

I'd like the type to be in the same line, such as when properties get documented:
image

Additional context
The displayed screenshot used the furo theme. I was directed here as the creator of furo said it's more of a sphinx thing then a theme issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the class-attribute and property examples in Sphinx using the furo theme, then trace the documentation output that distinguishes their layouts. Done means class-attribute types appear on the same line as their names, matching the property presentation.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.