Skip to content

Fix #759: autodoc: Add sphinx.ext.autodoc.preserve_defaults extension - #8771

Merged
tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:759_preserve_defaults
Mar 6, 2021
Merged

tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:759_preserve_defaults

Conversation

@tk0miya

@tk0miya tk0miya commented Jan 27, 2021

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Feature

Purpose

@tk0miya tk0miya added type:enhancement enhance or introduce a new feature extensions:autodoc labels Jan 27, 2021
@tk0miya tk0miya added this to the 3.5.0 milestone Jan 27, 2021
Comment thread sphinx/ext/autodoc/preserve_defaults.py Resolved
@tk0miya
tk0miya force-pushed the 759_preserve_defaults branch from a6e9251 to f2ec653 Compare January 31, 2021 14:49
@tk0miya tk0miya modified the milestones: 3.5.0, 4.0.0 Feb 4, 2021
@tk0miya
tk0miya force-pushed the 759_preserve_defaults branch from f2ec653 to 8bf96bc Compare March 6, 2021 09:32
@tk0miya
tk0miya changed the base branch from 3.x to master March 6, 2021 09:32
@tk0miya
tk0miya force-pushed the 759_preserve_defaults branch from 8bf96bc to 71d6b34 Compare March 6, 2021 09:33
@tk0miya
tk0miya marked this pull request as ready for review March 6, 2021 09:40
@tk0miya
tk0miya force-pushed the 759_preserve_defaults branch from 71d6b34 to add2f9e Compare March 6, 2021 09:41
… extension

Add a new extension `sphinx.ext.autodoc.preserve_defaults`.

It preserves the default argument values of function signatures in source code
and keep them not evaluated for readability.  This is an experimental
extension and it will be integrated into autodoc core in Sphinx-4.0.
@tk0miya
tk0miya force-pushed the 759_preserve_defaults branch from add2f9e to 1ea11b1 Compare March 6, 2021 09:48
@tk0miya
tk0miya merged commit c85d269 into sphinx-doc:master Mar 6, 2021
@tk0miya
tk0miya deleted the 759_preserve_defaults branch March 6, 2021 10:58
peterjc added a commit to peterjc/biopython that referenced this pull request Mar 6, 2021
peterjc added a commit to peterjc/biopython that referenced this pull request Mar 6, 2021
See sphinx-doc/sphinx#8771

autodoc_preserve_defaults was new in Sphinx 3.5
peterjc added a commit to biopython/biopython that referenced this pull request May 4, 2021
See sphinx-doc/sphinx#8771

autodoc_preserve_defaults was new in Sphinx 3.5
JoaoRodrigues pushed a commit to JoaoRodrigues/biopython that referenced this pull request Jun 3, 2021
See sphinx-doc/sphinx#8771

autodoc_preserve_defaults was new in Sphinx 3.5
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 13, 2021
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.

1 participant