Your message dated Wed, 02 Sep 2026 09:37:54 +0000
with message-id <[email protected]>
and subject line Bug#1146084: fixed in sphinx-autodoc-typehints 3.13.5-1
has caused the Debian Bug report #1146084,
regarding sphinx-autodoc-typehints: FTBFS: E AssertionError: assert
'data' == 'class'
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1146084: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1146084
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: src:sphinx-autodoc-typehints
Version: 3.12.0-1
Severity: serious
Tags: ftbfs forky sid
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/202608/
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.
--------------------------------------------------------------------------------
[...]
=================================== FAILURES ===================================
_____________________ test_format_annotation[FunctionType] _____________________
inv = Inventory(project='Python', version='3.14',
source_type=<SourceTypes.DictJSON: 'dict_json'>)
annotation = <class 'function'>
expected_result = ':py:data:`~types.FunctionType`'
@pytest.mark.parametrize(("annotation", "expected_result"), _CASES)
def test_format_annotation(inv: Inventory, annotation: Any,
expected_result: str) -> None:
conf = create_autospec(Config, _annotation_globals=globals(),
always_use_bars_union=False)
result = format_annotation(annotation, conf)
assert result == expected_result
if re.match(r"^:py:data:`~typing\.Union`\\\[.*``None``.*]",
expected_result): # pragma: <3.14 cover
expected_result_not_simplified = expected_result.replace(",
``None``", "")
expected_result_not_simplified += ":py:data:`~typing.Optional`\\
\\["
expected_result_not_simplified += "]"
conf = create_autospec(
Config,
simplify_optional_unions=False,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result_not_simplified:
expected_result_not_simplified =
expected_result_not_simplified.replace("~typing", "typing")
conf = create_autospec(
Config,
typehints_fully_qualified=True,
simplify_optional_unions=False,
_annotation_globals=globals(),
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result or __name__ in expected_result:
expected_result = expected_result.replace("~typing", "typing")
expected_result = expected_result.replace("~collections.abc",
"collections.abc")
expected_result = expected_result.replace("~numpy", "numpy")
expected_result = expected_result.replace("~" + __name__, __name__)
conf = create_autospec(
Config,
typehints_fully_qualified=True,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) == expected_result
if (
result.count(":py:") == 1
and ("typing" in result or "types" in result)
and (match :=
re.match(r"^:py:(?P<role>class|data|func):`~(?P<name>[^`]+)`", result))
):
name = match.group("name")
expected_role = next((o.role for o in inv.objects if o.name ==
name), None)
if expected_role == "function": # pragma: no cover -- Python docs
inventory always uses "func"
expected_role = "func"
> assert match.group("role") == expected_role
E AssertionError: assert 'data' == 'class'
E
E - class
E + data
tests/test_annotations.py:450: AssertionError
______________________ test_format_annotation[FrameType] _______________________
inv = Inventory(project='Python', version='3.14',
source_type=<SourceTypes.DictJSON: 'dict_json'>)
annotation = <class 'frame'>, expected_result = ':py:data:`~types.FrameType`'
@pytest.mark.parametrize(("annotation", "expected_result"), _CASES)
def test_format_annotation(inv: Inventory, annotation: Any,
expected_result: str) -> None:
conf = create_autospec(Config, _annotation_globals=globals(),
always_use_bars_union=False)
result = format_annotation(annotation, conf)
assert result == expected_result
if re.match(r"^:py:data:`~typing\.Union`\\\[.*``None``.*]",
expected_result): # pragma: <3.14 cover
expected_result_not_simplified = expected_result.replace(",
``None``", "")
expected_result_not_simplified += ":py:data:`~typing.Optional`\\
\\["
expected_result_not_simplified += "]"
conf = create_autospec(
Config,
simplify_optional_unions=False,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result_not_simplified:
expected_result_not_simplified =
expected_result_not_simplified.replace("~typing", "typing")
conf = create_autospec(
Config,
typehints_fully_qualified=True,
simplify_optional_unions=False,
_annotation_globals=globals(),
)
assert format_annotation(annotation, conf) ==
expected_result_not_simplified
if "typing" in expected_result or __name__ in expected_result:
expected_result = expected_result.replace("~typing", "typing")
expected_result = expected_result.replace("~collections.abc",
"collections.abc")
expected_result = expected_result.replace("~numpy", "numpy")
expected_result = expected_result.replace("~" + __name__, __name__)
conf = create_autospec(
Config,
typehints_fully_qualified=True,
_annotation_globals=globals(),
always_use_bars_union=False,
)
assert format_annotation(annotation, conf) == expected_result
if (
result.count(":py:") == 1
and ("typing" in result or "types" in result)
and (match :=
re.match(r"^:py:(?P<role>class|data|func):`~(?P<name>[^`]+)`", result))
):
name = match.group("name")
expected_role = next((o.role for o in inv.objects if o.name ==
name), None)
if expected_role == "function": # pragma: no cover -- Python docs
inventory always uses "func"
expected_role = "func"
> assert match.group("role") == expected_role
E AssertionError: assert 'data' == 'class'
E
E - class
E + data
tests/test_annotations.py:450: AssertionError
=========================== short test summary info ============================
FAILED tests/test_annotations.py::test_format_annotation[FunctionType] - Asse...
FAILED tests/test_annotations.py::test_format_annotation[FrameType] - Asserti...
=========== 2 failed, 692 passed, 24 skipped, 1 deselected in 14.59s ===========
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_sphinx-autodoc-typehints/build;
python3.14 -m pytest --deselect
tests/test_resolver/test_stubs.py::test_sphinx_build_stub_types_produce_crossrefs
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14
--parallel=2 returned exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit
status 2
--------------------------------------------------------------------------------
--- End Message ---
--- Begin Message ---
Source: sphinx-autodoc-typehints
Source-Version: 3.13.5-1
Done: Sebastian Ramacher <[email protected]>
We believe that the bug you reported is fixed in the latest version of
sphinx-autodoc-typehints, which is due to be installed in the Debian FTP
archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sebastian Ramacher <[email protected]> (supplier of updated
sphinx-autodoc-typehints package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 02 Sep 2026 11:31:25 +0200
Source: sphinx-autodoc-typehints
Built-For-Profiles: derivative.ubuntu noudeb
Architecture: source
Version: 3.13.5-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Sebastian Ramacher <[email protected]>
Closes: 1146084
Changes:
sphinx-autodoc-typehints (3.13.5-1) unstable; urgency=medium
.
* Team upload
* New upstream version 3.13.5 (Closes: #1146084)
Checksums-Sha1:
2f758e60df68f22724af7e3f5c9ba9f350bb2331 1883
sphinx-autodoc-typehints_3.13.5-1.dsc
daed616589e16e1f27a8184fef559ba964e22ff1 92932
sphinx-autodoc-typehints_3.13.5.orig.tar.gz
3f52cfbe93bf140b842568a55d10514eec6cd484 4496
sphinx-autodoc-typehints_3.13.5-1.debian.tar.xz
da8fc1f421ba4022ac8acd03a5baf773f7dfd597 8128
sphinx-autodoc-typehints_3.13.5-1_source.buildinfo
Checksums-Sha256:
c309ce5ebed3130d7f83dfc6c1db8c01f70a0d08e89ae220f88b0817a6e4962f 1883
sphinx-autodoc-typehints_3.13.5-1.dsc
d33a3651a2cec3e2562b456cd92de61d820922a7710eeb2081636696b7f80dd7 92932
sphinx-autodoc-typehints_3.13.5.orig.tar.gz
5e69a24b6513484b6ccc6ab64285bfafc1b9138448005005f8596a33fb945e8c 4496
sphinx-autodoc-typehints_3.13.5-1.debian.tar.xz
5336d947872981f9c513beb8b82b11db57df7dd2356800dc645402ffa88a91b1 8128
sphinx-autodoc-typehints_3.13.5-1_source.buildinfo
Files:
5ef252eff6e4603e26e883973cc4eefe 1883 python optional
sphinx-autodoc-typehints_3.13.5-1.dsc
25ac203653afbff3cca768f902866599 92932 python optional
sphinx-autodoc-typehints_3.13.5.orig.tar.gz
9385b8795f9a8ed4ea9347036bb424ad 4496 python optional
sphinx-autodoc-typehints_3.13.5-1.debian.tar.xz
364a5a63eaea17e257e225b5fb57a43c 8128 python optional
sphinx-autodoc-typehints_3.13.5-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iIsEARYKADMWIQRCYn6EHZln2oPh+pAhk2s2YA/NiQUCapftFRUcc3JhbWFjaGVy
QGRlYmlhbi5vcmcACgkQIZNrNmAPzYlh5wD/R4lQjdr/oMH/+XBee+nRcB/z14Qk
UuJHgiNNBiDqhXQBAPSGmGRndGd8FCIdHpevhqz2+IwYj3hdFuIm0h8s+uYN
=Fqlt
-----END PGP SIGNATURE-----
pgpa1M0_T4V6j.pgp
Description: PGP signature
--- End Message ---