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
Exception in util/typing.py for empty tuple type: Tuple[()] #9362
Comments
I failed to reproduce the error. Could you make a minimal reproducible example, please? |
Additionally, I'd like to know the meaning of |
I learned it from here |
update 2021-06-21: I corrected a typo in the code.
I extracted this minimal example, that follows my use case:
|
…s_of_empty_tuple Fix #9362: autodoc: AttributeError is raised for a subclass of Tuple[()]
Describe the bug
Exception occurs in
util/typing.py
, when I generate documentation with Sphinx autodoc extension. This seems to be caused by Python type hintTuple[()]
, that is the type of empty tuple()
:This behaviour started with Sphinx 3.4, whereas it worked as expected in Sphinx 3.3.
To Reproduce
Expected behavior
Your project
Environment info
The text was updated successfully, but these errors were encountered: