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
Re-opening #8255: hexadecimal default arguments are changed to decimal #9781
Labels
Milestone
Comments
Does |
I had already added autodoc_preserve_defaults = True to my |
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Oct 30, 2021
tk0miya
added a commit
to tk0miya/sphinx
that referenced
this issue
Oct 30, 2021
tk0miya
added a commit
that referenced
this issue
Oct 31, 2021
Fix #9781: autodoc_preserve_defaults does not support hexadecimal
Thanks! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
I am experiencing the exact same problem as described in #8255: hexadecimal default arguments are changed to decimal.
How to Reproduce
Autodoc the following function:
HTML result looks like this
Expected behavior
Hexadecimal defaults should not be converted to decimal, or at least there should be an option to enforce this behaviour.
Your project
I'm afraid this is private
Screenshots
No response
OS
Linux Ubuntu 20.04
Python version
3.8.10
Sphinx version
4.2.0
Sphinx extensions
autodoc, intersphinx, napoleon
Extra tools
Chromium 94
Additional context
No response
The text was updated successfully, but these errors were encountered: