diff --git a/src/syrupy/extensions/amber/__init__.py b/src/syrupy/extensions/amber/__init__.py index ed8fa4af..91efdc11 100644 --- a/src/syrupy/extensions/amber/__init__.py +++ b/src/syrupy/extensions/amber/__init__.py @@ -47,9 +47,10 @@ def _file_extension(self) -> str: def _read_snapshot_fossil(self, snapshot_location: str) -> "SnapshotFossil": return DataSerializer.read_file(snapshot_location) + @staticmethod @lru_cache() def __cacheable_read_snapshot( - self, snapshot_location: str, cache_key: str + snapshot_location: str, cache_key: str ) -> "SnapshotFossil": return DataSerializer.read_file(snapshot_location)