Skip to content

autodoc: an imported TypeVar is not resolved (refs: #8415) - #8426

Merged
tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:8415_unresolved_imported_TypeVar
Feb 28, 2021
Merged

tk0miya merged 1 commit into
sphinx-doc:masterfrom
tk0miya:8415_unresolved_imported_TypeVar

Conversation

@tk0miya

@tk0miya tk0miya commented Nov 15, 2020 •

Copy link
Copy Markdown
Member

Feature or Bugfix

  • Bugfix

Purpose

@tk0miya tk0miya added this to the 3.4.0 milestone Nov 15, 2020
@tk0miya
tk0miya force-pushed the 8415_unresolved_imported_TypeVar branch from 174c1e7 to 42fc5aa Compare November 15, 2020 05:38
Comment thread tests/test_util_inspect.py Resolved
@tk0miya
tk0miya force-pushed the 8415_unresolved_imported_TypeVar branch from 42fc5aa to c16a71c Compare November 15, 2020 11:35
@tk0miya
tk0miya force-pushed the 8415_unresolved_imported_TypeVar branch from 2c1da46 to 6c71b5b Compare November 22, 2020 06:42
@tk0miya tk0miya modified the milestones: 3.4.0, 3.5.0 Dec 19, 2020
@tk0miya
tk0miya force-pushed the 8415_unresolved_imported_TypeVar branch from 6c71b5b to 4b382ed Compare December 25, 2020 16:12
@tk0miya tk0miya modified the milestones: 3.5.0, 4.0.0 Jan 24, 2021
@tk0miya
tk0miya changed the base branch from 3.x to master February 28, 2021 06:56
@tk0miya
tk0miya force-pushed the 8415_unresolved_imported_TypeVar branch from 4b382ed to 725ed3d Compare February 28, 2021 06:57
So far, a TypeVar is rendered without module name. As a result, it
could not be resolved if it is imported from other modules.  This
prepends its module name and make it resolvable.  This is available
only in Python 3.7 or above.

As a side effect, all of TypeVars are displayed with module name. It
should be fixed in latter step (refs: sphinx-doc#7119)
@tk0miya
tk0miya force-pushed the 8415_unresolved_imported_TypeVar branch from 725ed3d to 7d3cc38 Compare February 28, 2021 06:58
@tk0miya
tk0miya merged commit 836cd05 into sphinx-doc:master Feb 28, 2021
@tk0miya
tk0miya deleted the 8415_unresolved_imported_TypeVar branch February 28, 2021 07:45
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 14, 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.

1 participant