diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 261906cc..fddc0ec3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -67,7 +67,7 @@ repos: additional_dependencies: [ "traitlets>=5.3", - "jupyter_server>=2.9", + "jupyter_server>=2.10", "openapi_core", "json5", "pytest", diff --git a/jupyterlab_server/pytest_plugin.py b/jupyterlab_server/pytest_plugin.py index 9d40a7ea..a9709f7e 100644 --- a/jupyterlab_server/pytest_plugin.py +++ b/jupyterlab_server/pytest_plugin.py @@ -143,6 +143,6 @@ def labserverapp( ) -> LabServerApp: """A lab server app.""" app = make_labserver_extension_app() - app._link_jupyter_server_extension(jp_serverapp) # type:ignore[no-untyped-call] + app._link_jupyter_server_extension(jp_serverapp) app.initialize() # type:ignore[no-untyped-call] return app diff --git a/jupyterlab_server/settings_utils.py b/jupyterlab_server/settings_utils.py index dca2885b..1570ff0f 100644 --- a/jupyterlab_server/settings_utils.py +++ b/jupyterlab_server/settings_utils.py @@ -92,8 +92,8 @@ def _get_user_settings(settings_dir: str, schema_name: str, schema: Any) -> dict if os.path.exists(path): stat = os.stat(path) - last_modified = tz.utcfromtimestamp(stat.st_mtime).isoformat() - created = tz.utcfromtimestamp(stat.st_ctime).isoformat() + last_modified = tz.utcfromtimestamp(stat.st_mtime).isoformat() # type:ignore[no-untyped-call] + created = tz.utcfromtimestamp(stat.st_ctime).isoformat() # type:ignore[no-untyped-call] with open(path, encoding="utf-8") as fid: try: # to load and parse the settings file. raw = fid.read() or raw diff --git a/jupyterlab_server/workspaces_handler.py b/jupyterlab_server/workspaces_handler.py index 301ba761..a42ce909 100644 --- a/jupyterlab_server/workspaces_handler.py +++ b/jupyterlab_server/workspaces_handler.py @@ -57,8 +57,8 @@ def _load_with_file_times(workspace_path: Path) -> dict: with workspace_path.open(encoding="utf-8") as fid: workspace = json.load(fid) workspace["metadata"].update( - last_modified=tz.utcfromtimestamp(stat.st_mtime).isoformat(), - created=tz.utcfromtimestamp(stat.st_ctime).isoformat(), + last_modified=tz.utcfromtimestamp(stat.st_mtime).isoformat(), # type:ignore[no-untyped-call] + created=tz.utcfromtimestamp(stat.st_ctime).isoformat(), # type:ignore[no-untyped-call] ) return workspace