Place the link as "context" instead of "Link:"
@@ -196,8 +196,8 @@ class BadHTMLDoctypeDeclaration(DiagnosticPipError):
hint_stmt=(
"You might need to reach out to the owner of that package index, "
"to get this fixed. "
+ "See https://github.com/pypa/pip/issues/10825 for context."
),
- link="https://github.com/pypa/pip/issues/10825",
)
