From c1d1df5899efd75e3e34038e447b3493267a37f7 Mon Sep 17 00:00:00 2001 From: Vishnutheep B Date: Tue, 20 Aug 2024 18:23:03 +0000 Subject: [PATCH] Remove require_hash from save method in ContentsManager --- jupyter_server/services/contents/manager.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/jupyter_server/services/contents/manager.py b/jupyter_server/services/contents/manager.py index 29f25f4e66..71e998992a 100644 --- a/jupyter_server/services/contents/manager.py +++ b/jupyter_server/services/contents/manager.py @@ -460,15 +460,10 @@ def get(self, path, content=True, type=None, format=None, require_hash=False): """ raise NotImplementedError - def save(self, model, path, require_hash=False): + def save(self, model, path): """ Save a file or directory model to path. - Parameters - ---------- - require_hash : bool - Whether the file hash must be returned or not. - Should return the saved model with no content. Save implementations should call self.run_pre_save_hook(model=model, path=path) prior to writing any data. @@ -875,15 +870,10 @@ async def get(self, path, content=True, type=None, format=None, require_hash=Fal """ raise NotImplementedError - async def save(self, model, path, require_hash=False): + async def save(self, model, path): """ Save a file or directory model to path. - Parameters - ---------- - require_hash : bool - Whether the file hash must be returned or not. - Should return the saved model with no content. Save implementations should call self.run_pre_save_hook(model=model, path=path) prior to writing any data.