Skip to content

Commit

Permalink
Use solution for unused-ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-edna committed Nov 15, 2023
1 parent 75db6ea commit aae3555
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dfetch/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@ class ManifestDumper(yaml.SafeDumper): # pylint: disable=too-many-ancestors

def write_line_break(self, data: Any = None) -> None:
"""Write a line break."""
super().write_line_break(data) # type: ignore
super().write_line_break(data) # type: ignore[unused-ignore]

if len(self.indents) == 2 and getattr(self.event, "value", "") != "version":
super().write_line_break() # type: ignore
super().write_line_break() # type: ignore[unused-ignore]

if len(self.indents) == 3 and self._last_additional_break != 2:
super().write_line_break() # type: ignore
super().write_line_break() # type: ignore[unused-ignore]

self._last_additional_break = len(self.indents)

0 comments on commit aae3555

Please sign in to comment.