Skip to content

Commit

Permalink
Issue 1036 | Client: deprecate download
Browse files Browse the repository at this point in the history
  • Loading branch information
IceKhan13 committed Oct 20, 2023
1 parent 51e5eb9 commit 6e690da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/quantum_serverless/core/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,16 @@ def files(self) -> List[str]:
"""Returns list of available files produced by programs to download."""
raise NotImplementedError

def download(self, file: str, download_location: str = "./"):
"""Download file."""
warnings.warn(
"`download` method has been deprecated. "
"And will be removed in future releases. "
"Please, use `file_download` instead.",
DeprecationWarning,
)
return self.file_download(file, download_location)

def file_download(self, file: str, download_location: str):
"""Download file."""
raise NotImplementedError
Expand Down

0 comments on commit 6e690da

Please sign in to comment.