From b644d7ee4037f0f8aa7079addca5178c69f43687 Mon Sep 17 00:00:00 2001 From: "Aaron Hall, MBA" Date: Mon, 30 Jul 2018 12:49:34 -0400 Subject: [PATCH] indent code block --- docs/source/extending/contents.rst | 38 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/source/extending/contents.rst b/docs/source/extending/contents.rst index bf741a42dc..61575dd92d 100644 --- a/docs/source/extending/contents.rst +++ b/docs/source/extending/contents.rst @@ -225,25 +225,25 @@ return for a more complete implementation. .. code-block:: python -class NoOpCheckpoints(GenericCheckpointsMixin, Checkpoints): - """requires the following methods:""" - def create_file_checkpoint(self, content, format, path): - """ -> checkpoint model""" - def create_notebook_checkpoint(self, nb, path): - """ -> checkpoint model""" - def get_file_checkpoint(self, checkpoint_id, path): - """ -> {'type': 'file', 'content': , 'format': {'text', 'base64'}}""" - def get_notebook_checkpoint(self, checkpoint_id, path): - """ -> {'type': 'notebook', 'content': }""" - def delete_checkpoint(self, checkpoint_id, path): - """deletes a checkpoint for a file""" - def list_checkpoints(self, path): - """returns a list of checkpoint models for a given file, - default just does one per file - """ - return [] - def rename_checkpoint(self, checkpoint_id, old_path, new_path): - """renames checkpoint from old path to new path""" + class NoOpCheckpoints(GenericCheckpointsMixin, Checkpoints): + """requires the following methods:""" + def create_file_checkpoint(self, content, format, path): + """ -> checkpoint model""" + def create_notebook_checkpoint(self, nb, path): + """ -> checkpoint model""" + def get_file_checkpoint(self, checkpoint_id, path): + """ -> {'type': 'file', 'content': , 'format': {'text', 'base64'}}""" + def get_notebook_checkpoint(self, checkpoint_id, path): + """ -> {'type': 'notebook', 'content': }""" + def delete_checkpoint(self, checkpoint_id, path): + """deletes a checkpoint for a file""" + def list_checkpoints(self, path): + """returns a list of checkpoint models for a given file, + default just does one per file + """ + return [] + def rename_checkpoint(self, checkpoint_id, old_path, new_path): + """renames checkpoint from old path to new path""" See ``GenericFileCheckpoints`` in :mod:`notebook.services.contents.filecheckpoints` for a more complete example.