Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Nov 23, 2020

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Nov 22, 2020

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.
@@ -1750,27 +1758,31 @@ def test_autodoc_TypeVar(app):
'',
" alias of TypeVar('T1')",
'',
'',
'.. py:data:: T3',
' :module: target.typevar',
'',
' T3',
'',
" alias of TypeVar('T3', int, str)",
Copy link
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.

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

@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