#1140283 sphinx-autodoc-typehints: FTBFS: E AssertionError: assert 'data' == 'class'

#1140283#5
Date:
2026-06-17 16:16:04 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:sphinx-autodoc-typehints, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints
* Building wheel...
Successfully built sphinx_autodoc_typehints-3.8.0-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.14 with "installer" module
I: pybuild plugin_pyproject:142: Building wheel for python3.13 with "build" module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_sphinx-autodoc-typehints
* Building wheel...
Successfully built sphinx_autodoc_typehints-3.8.0-py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.13 with "installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints/build; python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.6, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints/build
configfile: pyproject.toml
plugins: cov-5.0.0, typeguard-4.4.4
collected 502 items / 2 skipped

tests/test_annotations.py ....................................ssssssssss [  9%]
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss.. [ 23%]
..................................                                       [ 30%]
tests/test_attributes_patch.py .....                                     [ 31%]
tests/test_formats_numpydoc.py .............................             [ 37%]
tests/test_formats_sphinx.py .......                                     [ 38%]
tests/test_generator_yields.py ..                                        [ 38%]
tests/test_guarded_import.py .                                           [ 39%]
tests/test_init.py .........                                             [ 40%]
tests/test_integration.py .............................................. [ 50%]
........................................................................ [ 64%]
..............................................................           [ 76%]
tests/test_integration_autodoc_type_aliases.py ...                       [ 77%]
tests/test_integration_issue_384.py .                                    [ 77%]
tests/test_integration_issue_572.py ..s                                  [ 78%]
tests/test_integration_issue_599.py ....                                 [ 78%]
tests/test_method_lookup.py .                                            [ 79%]
tests/test_pep695.py ...                                                 [ 79%]
tests/test_resolver/test_attrs.py .......                                [ 81%]
tests/test_resolver/test_stubs.py ..............................         [ 87%]
tests/test_resolver/test_type_comments.py ...................            [ 90%]
tests/test_resolver/test_type_hints.py ...........                       [ 93%]
tests/test_resolver/test_util.py ....                                    [ 93%]
tests/test_safe_parse.py .                                               [ 94%]
tests/test_sphinx_autodoc_typehints.py .............................     [ 99%]
tests/test_version.py .                                                  [100%]

=============================== warnings summary ===============================
tests/test_generator_yields.py: 24 warnings
tests/test_guarded_import.py: 2 warnings
tests/test_integration.py: 464 warnings
tests/test_integration_autodoc_type_aliases.py: 6 warnings
tests/test_integration_issue_384.py: 2 warnings
tests/test_integration_issue_572.py: 4 warnings
tests/test_integration_issue_599.py: 6 warnings
tests/test_method_lookup.py: 6 warnings
tests/test_pep695.py: 10 warnings
tests/test_resolver/test_attrs.py: 10 warnings
tests/test_resolver/test_stubs.py: 6 warnings
tests/test_safe_parse.py: 2 warnings
tests/test_sphinx_autodoc_typehints.py: 382 warnings
  /usr/lib/python3/dist-packages/sphinx/ext/napoleon/docstring.py:361: RemovedInSphinx11Warning: The mapping interface for autodoc options objects is deprecated, and will be removed in Sphinx 11. Use attribute access instead.
    if options:

E             - class
E             + data

tests/test_annotations.py:439: AssertionError
E             - class
E             + data

tests/test_annotations.py:439: AssertionError
=============================== warnings summary ===============================
tests/test_generator_yields.py: 24 warnings
tests/test_guarded_import.py: 2 warnings
tests/test_integration.py: 464 warnings
tests/test_integration_autodoc_type_aliases.py: 6 warnings
tests/test_integration_issue_384.py: 2 warnings
tests/test_integration_issue_599.py: 6 warnings
tests/test_method_lookup.py: 6 warnings
tests/test_pep695.py: 10 warnings
tests/test_resolver/test_attrs.py: 10 warnings
tests/test_resolver/test_stubs.py: 6 warnings
tests/test_safe_parse.py: 2 warnings
tests/test_sphinx_autodoc_typehints.py: 382 warnings
  /usr/lib/python3/dist-packages/sphinx/ext/napoleon/docstring.py:361: RemovedInSphinx11Warning: The mapping interface for autodoc options objects is deprecated, and will be removed in Sphinx 11. Use attribute access instead.
    if options: