Skip to content

Commit

Permalink
Remove require_hash from save method in ContentsManager
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmevichu committed Aug 20, 2024
1 parent 5d2232b commit c1d1df5
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions jupyter_server/services/contents/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit c1d1df5

Please sign in to comment.