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

Custom types using typing.NewType are not displayed well with the HEAD of 3.10 #9489

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

Comments

@tk0miya
Copy link
Member

tk0miya commented Jul 22, 2021

Describe the bug

Recently, the implementation of typing.NewType was changed on the HEAD of 3.10 (refs: python/cpython#27250). After this change, autodoc can't process custom types using NewType well.

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

How to Reproduce

from typing import NewType

#: T6
T6 = NewType("T6", int)

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
@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