Skip to content

typing_extensions.TypeAlias not rendered as a type alias #520

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

Open
bkeryan opened this issue May 5, 2025 · 0 comments · May be fixed by #521
Open

typing_extensions.TypeAlias not rendered as a type alias #520

bkeryan opened this issue May 5, 2025 · 0 comments · May be fixed by #521

Comments

@bkeryan
Copy link

bkeryan commented May 5, 2025

sphinx-autoapi does not render typing_extensions.TypeAlias the same as a PEP 695 type statement or typing.TypeAlias.

Steps to reproduce:

from typing import TypeAlias
import typing
import typing_extensions

MyTypeAliasA: TypeAlias = tuple[str, int]
type MyTypeAliasB = tuple[str, int]
MyTypeAliasC: typing.TypeAlias = tuple[str, int]
MyTypeAliasD: typing_extensions.TypeAlias = tuple[str, int]

Expected output:
typing_extensions.TypeAlias is rendered as type foo.MyTypeAliasC= tuple[str, int]

Actual output:
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant