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
TypeError: can't compute signature for built-in type <class 'str'> error when building api docs #7791
Comments
Thank you for reporting. The attached error log says Sphinx was crashed in processing a singledispatch function. Does your module contain a singledispatch function? |
If you're referring to the namespace module code I posted, then no. It's only relying on official python libraries. I don't think Part of how I tested was I found the overall sub-module in the codebase that was producing the stacktrace, then I moved out all the modules and slowly added them back in until I found which module caused it. Perhaps it's in conjunction with another module, I don't know, but that's how I arrived at the above issue. We do have singledispatch-enabled functions in our codebase, it's mostly used in json encoding for serialization and our json python module isn't producing the stacktrace, at least without our namespace one. |
@NucleaPeon Could you confirm this PR #7797 resolves your problem? |
…chfunction Fix #7791: autodoc: TypeError is raised on documenting singledispatch function
I merged #7797 and going to release it as 3.1.0. Could you check the new package, please? And please let me know if not working fine. |
Looks like we got further!
Should I refile the issue? Not sure I can reopen this issue. |
Could you file a new issue, please? It seems the error is not related to this. |
Note: The error log says |
Describe the bug
Running sphinx-build after sphinx-apidoc on our codebase results in the error message:
The exact command I ran is
make html
with everything set up and the.rst
s generated.To Reproduce
make html
Due to the specifics and the company I work for, I am unable to provide a complete code example, but I can provide the module in its entirety that it was tripping up on and it doesn't contain specifics.
Expected behavior
No errors when running
make html
Your project
n/a
Environment info
Additional context
See attachment
sphinx-err-wzrazkn1.log
The text was updated successfully, but these errors were encountered: