feat(storage): enhance save_file method to accept storage class parameter

This commit is contained in:
Siddhant Rai
2025-07-10 15:34:52 +05:30
parent 839a12bed4
commit 5623734276
3 changed files with 13 additions and 4 deletions

View File

@@ -1,4 +1,5 @@
"""Base storage class for file system abstraction."""
from abc import ABC, abstractmethod
from typing import BinaryIO, List, Callable
@@ -7,7 +8,7 @@ class BaseStorage(ABC):
"""Abstract base class for storage implementations."""
@abstractmethod
def save_file(self, file_data: BinaryIO, path: str) -> dict:
def save_file(self, file_data: BinaryIO, path: str, **kwargs) -> dict:
"""
Save a file to storage.