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

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

Merged
merged 1 commit into from Feb 28, 2021

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Nov 15, 2020

Feature or Bugfix

  • Bugfix

Purpose

tests/test_util_inspect.py Outdated Show resolved Hide 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.

None yet

1 participant