Skip to content

Commit

Permalink
Fix flake8 issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ubmarco committed Oct 24, 2023
1 parent 2ac330d commit f3d4d55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions sphinx/builders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,7 @@ def init(self) -> None:
"""
pass

def merge_env_post_transform(
self,
new_attrs: dict[str, Any],
) -> None:
def merge_env_post_transform(self, new_attrs: dict[str, Any]) -> None:
"""Give builders the option to merge any parallel post-transform
information to the main builder. This can be useful for the
build-finish phase. The function is called once for each finished
Expand Down
6 changes: 1 addition & 5 deletions sphinx/builders/linkcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ def init(self) -> None:
# set a timeout for non-responding servers
socket.setdefaulttimeout(5.0)

def merge_env_post_transform(
self,
new_attrs: dict[str, Any],
) -> None:
def merge_env_post_transform(self, new_attrs: dict[str, Any]) -> None:
"""Merge hyperlinks back to the main builder after parallel
post-transformation.
Expand All @@ -82,7 +79,6 @@ def merge_env_post_transform(
if hyperlink not in self.hyperlinks:
self.hyperlinks[hyperlink] = value


def finish(self) -> None:
checker = HyperlinkAvailabilityChecker(self.config)
logger.info('')
Expand Down

0 comments on commit f3d4d55

Please sign in to comment.