Skip to content

Fix #8460: autodata directive does not display the detail of TypeVars - #8471

Merged
tk0miya merged 3 commits into
sphinx-doc:3.xfrom
tk0miya:8460_TypeVar
Nov 23, 2020
Merged

tk0miya merged 3 commits into
sphinx-doc:3.xfrom
tk0miya:8460_TypeVar

Conversation

@tk0miya

@tk0miya tk0miya commented Nov 22, 2020

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Bugfix

Purpose

…f TypeVars

The details are only shown when automodule directive is used.  This
allows to document them via other auto* directives.
Comment thread tests/test_ext_autodoc.py
'',
' T3',
'',
" alias of TypeVar('T3', int, str)",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make these arguments hyperlinked in the next step.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see anything for the bound parameter for TypeVar. It should be accessible via the __bound__ attribute. It's important information to display.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you file a new issue? Then we'll consider improving it.

Comment thread sphinx/ext/autodoc/__init__.py Resolved
@tk0miya
tk0miya merged commit b2f92e7 into sphinx-doc:3.x Nov 23, 2020
@tk0miya
tk0miya deleted the 8460_TypeVar branch November 23, 2020 05:21
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants