-
Notifications
You must be signed in to change notification settings - Fork 2k
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
TypeVar mentioned in type annotation is not found, causing an unexpected warning on Sphinx 3.x #7722
Comments
I just ran git bisect, and realized that this issue is a duplicate of #7493. Closing |
I think this is similar to #7493, but not the same problem. |
autodoc: Support TypeVar (refs: #7722)
I noticed #7930 also fixed this case. It helps to resolve the location of I confirmed the fix with adding a comment to
|
Describe the bug
TypeVar mentioned in type annotation is not found, causing an unexpected warning on Sphinx 3.x
To Reproduce
Write conf.py as follows:
Write index.rst as follows:
Write repro.py as follows:
Run the following command:
Expected behavior
Like with Sphinx 2.x, the
SendType
type hint is ignored.Actual behavior
The build fails, since we treat warnings as errors:
Environment info
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: