Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/syrupy/extensions/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,16 +183,16 @@ def delete_snapshots(
"""
raise NotImplementedError

def _pre_read(self, *, index: "SnapshotIndex" = 0) -> None:
def _pre_read(self, *, index: "SnapshotIndex" = 0) -> None: # noqa: B027
pass

def _post_read(self, *, index: "SnapshotIndex" = 0) -> None:
def _post_read(self, *, index: "SnapshotIndex" = 0) -> None: # noqa: B027
pass

def _pre_write(self, *, data: "SerializedData", index: "SnapshotIndex" = 0) -> None:
self.__ensure_snapshot_dir(index=index)

def _post_write(
def _post_write( # noqa: B027
self, *, data: "SerializedData", index: "SnapshotIndex" = 0
) -> None:
pass
Expand Down Expand Up @@ -390,7 +390,7 @@ def __strip_ends(self, line: str) -> str:
return line.rstrip("".join(self._ends.keys()))


class SnapshotComparator(ABC):
class SnapshotComparator:
def matches(
self,
*,
Expand Down