Bug#1120324: slepc4py: sphinx autodoc fails: unexpected keyword argument 'short_literals'
Drew Parsons
dparsons at debian.org
Fri Nov 7 16:35:27 GMT 2025
Source: slepc4py
Version: 3.24.0-1~
Severity: normal
Control: forwarded -1 https://gitlab.com/slepc/slepc/-/issues/98
doc build for slepc4py 3.24.0 fails:
Traceback
=========
File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/__init__.py", line 2980, in add_directive_header
objrepr = stringify_annotation(
annotations.get(self.objpath[-1]),
mode,
short_literals=short_literals,
)
TypeError: _setup_autodoc.<locals>.stringify_annotation() got an unexpected keyword argument 'short_literals'
This is a problem betweene sphinx 8.2 and sphinx-autodoc-typehints. It
was supposed to have been fixed in sphinx-autodoc-typehints 3.2.0 by
https://github.com/tox-dev/sphinx-autodoc-typehints/pull/525
but we still see the error.
petsc4py had the same problem, Bug#1114259, fixed upstream
https://gitlab.com/petsc/petsc/-/merge_requests/8685
More information about the debian-science-maintainers
mailing list