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 #8567: autodoc: Instance attributes are incorrectly added to Parent class #8571

Merged
merged 1 commit into from Dec 22, 2020

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Dec 21, 2020

Feature or Bugfix

  • Bugfix

Purpose

…ed to Parent class

The instance attributes on subclasses are shown on the document of
parent class unexpectedly because of autodoc modifies `__annotations__`
in place.  This fix creates a copy of `__annotations__` attribute and
attach it to the subclass.
@tk0miya tk0miya force-pushed the 8567_wrong_ivars_in_parent_class branch from b192c8e to 70bb226 Compare December 21, 2020 17:38
@tk0miya tk0miya merged commit 955d655 into sphinx-doc:3.4.x Dec 22, 2020
@tk0miya tk0miya deleted the 8567_wrong_ivars_in_parent_class branch December 22, 2020 14:40
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 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.

None yet

1 participant