From f35a605338f9c81947a3a5055fa3f47ff78cf9d6 Mon Sep 17 00:00:00 2001 From: James Addison Date: Sat, 19 Oct 2024 21:09:39 +0100 Subject: [PATCH] Fixup: assignment, not typehint --- sphinx/builders/linkcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/builders/linkcheck.py b/sphinx/builders/linkcheck.py index 92891b17b7e..0ed109ab91d 100644 --- a/sphinx/builders/linkcheck.py +++ b/sphinx/builders/linkcheck.py @@ -407,7 +407,7 @@ def __init__( self._allow_unauthorized = config.linkcheck_allow_unauthorized self._timeout_status: Literal[LinkStatus.BROKEN, LinkStatus.TIMEOUT] if config.linkcheck_report_timeouts_as_broken: - self._timeout_status: LinkStatus.BROKEN + self._timeout_status = LinkStatus.BROKEN else: self._timeout_status = LinkStatus.TIMEOUT