Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 23, 2024
1 parent af91421 commit fc4d3d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
4 changes: 1 addition & 3 deletions jupyterfs/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def _load_jupyter_server_extension(serverapp):
warnings.warn(_mm_config_warning_msg)
return

if isinstance(serverapp.contents_manager_class, type) and not issubclass(
serverapp.contents_manager_class, MetaManagerShared
):
if isinstance(serverapp.contents_manager_class, type) and not issubclass(serverapp.contents_manager_class, MetaManagerShared):
serverapp.contents_manager_class = MetaManager
serverapp.log.info("Configuring jupyter-fs manager as the content manager class")

Expand Down
16 changes: 4 additions & 12 deletions jupyterfs/metamanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,8 @@ def root_dir(self):

create_checkpoint = path_first_arg("create_checkpoint", False, sync=True)
list_checkpoints = path_first_arg("list_checkpoints", False, sync=True)
restore_checkpoint = path_second_arg(
"restore_checkpoint", "checkpoint_id", False, sync=True
)
delete_checkpoint = path_second_arg(
"delete_checkpoint", "checkpoint_id", False, sync=True
)
restore_checkpoint = path_second_arg("restore_checkpoint", "checkpoint_id", False, sync=True)
delete_checkpoint = path_second_arg("delete_checkpoint", "checkpoint_id", False, sync=True)


class SyncMetaManager(MetaManagerShared, ContentsManager): ...
Expand All @@ -192,12 +188,8 @@ async def copy(self, from_path, to_path=None):

create_checkpoint = path_first_arg("create_checkpoint", False, sync=False)
list_checkpoints = path_first_arg("list_checkpoints", False, sync=False)
restore_checkpoint = path_second_arg(
"restore_checkpoint", "checkpoint_id", False, sync=False
)
delete_checkpoint = path_second_arg(
"delete_checkpoint", "checkpoint_id", False, sync=False
)
restore_checkpoint = path_second_arg("restore_checkpoint", "checkpoint_id", False, sync=False)
delete_checkpoint = path_second_arg("delete_checkpoint", "checkpoint_id", False, sync=False)


class MetaManagerHandler(APIHandler):
Expand Down

0 comments on commit fc4d3d4

Please sign in to comment.