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

BUG: autosummary to list all class members #4247

Merged

Conversation

jorisvandenbossche
Copy link
Contributor

Fixes the availability of the list of attributes in the autosummary template.

Feature or Bugfix

  • Bugfix

Purpose

This PR intends to be a more general fix for b3e0e29. That commit fixed issue #3900 for the methods being no longer available in the autosummary template. This generalizes that so also the Attributes are again available in the autosummary template.

The fact that those methods/attributes are no longer available is/was a regression in the 1.6.x line.

Detail

The rationale of the fix is that the "imported_members=False" (which is the default) is not relevant for a class, but only for a module. Therefore I removed this in the elif doc.objtype == 'class': branch.

Relates

@jorisvandenbossche
Copy link
Contributor Author

Any comments in this PR?
And any chance if this good be targeted for a 1.6.x bugfix release ?

@tk0miya
Copy link
Member

tk0miya commented Dec 16, 2017

@shimizukawa could you review this please?

@jorisvandenbossche
Copy link
Contributor Author

Any update on this?

@tk0miya tk0miya added this to the 1.7 milestone Jan 17, 2018
@tk0miya tk0miya changed the base branch from master to 1.7-release January 30, 2018 01:43
Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

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

LGTM!

@tk0miya tk0miya merged commit 2994014 into sphinx-doc:1.7-release Jan 30, 2018
@tk0miya
Copy link
Member

tk0miya commented Jan 30, 2018

Sorry for very late reviewing.
I just merged this. And it will be released as 1.7.0 soon.
Thank you for your contribution!

@jorisvandenbossche jorisvandenbossche deleted the autosummary-attributes branch January 30, 2018 08:37
@jorisvandenbossche
Copy link
Contributor Author

Thanks for reviewing and merging!

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.

3 participants