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