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

Remove unnecessary(?) method that's causing a deprecation warning #1475

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Jun 22, 2021

The add_content method in the trait_documenter Sphinx extension is causing a DeprecationWarning. It looks as though we don't need it, and this PR removes it.

In manual testing with a range of Sphinx versions from 1.8.5 onwards, after removing this method, I was unable to observe either documentation build failures or visible problems with the built documentation.

I'd be slightly happier if I understood why this code was there in the first place, but I've failed to discover the reason. @itziakos is the original author of this code, and may have some ideas.

It's also worth noting that since #1469, an attempt to access the __doc__ attribute on a CTrait object will fail in the expected way, rather than potentially confusing Sphinx by returning None, so I can't think of any reason why we'd need this override with Traits master branch, even if we did need it with earlier versions of Traits.

Fixes #1443.

@rahulporuri rahulporuri self-requested a review June 22, 2021 09:37
Copy link
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

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

LGTM. I built and browsed through built docs on this branch and everything looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DeprecationWarning with latest Sphinx: no_docstring is deprecated.
2 participants