-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Conversation
…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)", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Feature or Bugfix
Purpose
allows to document them via other auto* directives.