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

Close #5603: autodoc: Allow to refer to a python object using canonical name #9026

Merged
merged 1 commit into from Mar 27, 2021

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Mar 21, 2021

Feature or Bugfix

  • Feature

Purpose

Remaining Tasks

  • Support imported functions

@tk0miya tk0miya added type:enhancement enhance or introduce a new feature extensions:autodoc labels Mar 21, 2021
@tk0miya tk0miya added this to the 4.0.0 milestone Mar 21, 2021
sphinx/ext/autodoc/__init__.py Outdated Show resolved Hide resolved
@tk0miya tk0miya force-pushed the 5603_autodoc_canonical branch 2 times, most recently from 5ff2c37 to d8530e3 Compare March 27, 2021 07:42
…ng canonical name

This generates `:canonical:` option for `:py:class:` directive if the
target class is imported from other module.  It allows users to refer it
using both the new name (imported name) and the original name (canonical
name).

It helps a library that implements some class in private module (like
`_io.StringIO`), and publish it as public module (like `io.StringIO`).
@tk0miya
Copy link
Member Author

tk0miya commented Mar 27, 2021

Thank you for reviewing @shimizukawa ! Now merging.

@ChaiByte
Copy link

ChaiByte commented Apr 8, 2021

Long-awaited enhancement ~ 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extensions:autodoc type:enhancement enhance or introduce a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants