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

Type annotations using typing._SpecialForm are not displayed well with the HEAD of 3.10 #9490

Closed
tk0miya opened this issue Jul 22, 2021 · 0 comments

Comments

@tk0miya
Copy link
Member

tk0miya commented Jul 22, 2021

Describe the bug

Recently, the implementation of typing._SpecialForm was changed on the HEAD of 3.10 (refs: python/cpython#27246). After this change, autodoc can't process type aliases built by typing._SpecialForm well.

Note: this breaks our CI. So it should be fixed on 4.1.2.

How to Reproduce

assert stringify(Annotated[str, "foo", "bar"]) == "str"

Expected behavior

No response

Your project

N/A

Screenshots

No response

OS

Linux

Python version

HEAD of 3.10

Sphinx version

4.1.x

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

@tk0miya tk0miya added this to the 4.1.2 milestone Jul 22, 2021
tk0miya added a commit to tk0miya/sphinx that referenced this issue Jul 22, 2021
At the HEAD of 3.10, the implementation of `typing._SpecialForm` and
`typing._BaseGenericAlias` has been changed to support __qualname__.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant