Skip to content

Use autodoc-process-bases to substitute TypeVars for their bounds in base classes in docs #734

@tp832944

Description

@tp832944

What's the new feature?

Use autodoc-process-bases to substitute TypeVars for their bounds in base classes in docs. This is similar to the existing function to do it in function annotations.

See documentation/source/conf.py and https://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html#event-autodoc-process-bases.

What value does this add?

Show inheritance with Intersphinx links without needing to include TypeVars in the compiled documentation. Currently these links are broken.

Is there an alternative you've considered?

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions