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 #9607: autodoc: Incorrect base class detection #9654

Merged
merged 2 commits into from Sep 26, 2021

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Sep 20, 2021

Feature or Bugfix

  • Bugfix

Purpose

  • In case of the descendants of generic class, the value of
    obj.orig_bases is incorrect because it returns original base
    arguments for the child of the generic class instead of the target
    class itself.
  • This uses obj.dict to get the correct orig_bases information.
  • refs: Incorrect base class detection #9607

In case of the descendants of generic class, the value of
obj.__orig_bases__ is incorrect because it returns original base
arguments for the child of the generic class instead of the target
class itself.

This uses obj.__dict__ to get the correct __orig_bases__ information.
@tk0miya tk0miya merged commit f34eb49 into sphinx-doc:4.x Sep 26, 2021
@tk0miya tk0miya deleted the 9607_incorrect_orig_bases branch September 26, 2021 17:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 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