diff --git a/sphinx/transforms/post_transforms/__init__.py b/sphinx/transforms/post_transforms/__init__.py index 357cf61488d..b9a7788feac 100644 --- a/sphinx/transforms/post_transforms/__init__.py +++ b/sphinx/transforms/post_transforms/__init__.py @@ -157,7 +157,7 @@ def stringify(name: str, node: Element) -> str: candidates = ' or '.join(starmap(stringify, results)) logger.warning(__("more than one target found for 'any' cross-" 'reference %r: could be %s'), target, candidates, - location=node) + location=node, type="ref", subtype="any") res_role, newnode = results[0] # Override "any" class with the actual role type to get the styling # approximately correct.