Skip to content

Commit 085ac9b

Browse files
authored
Update typings for server 2.10 (#421)
1 parent 33d2009 commit 085ac9b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ repos:
6767
additional_dependencies:
6868
[
6969
"traitlets>=5.3",
70-
"jupyter_server>=2.9",
70+
"jupyter_server>=2.10",
7171
"openapi_core",
7272
"json5",
7373
"pytest",

jupyterlab_server/pytest_plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,6 @@ def labserverapp(
143143
) -> LabServerApp:
144144
"""A lab server app."""
145145
app = make_labserver_extension_app()
146-
app._link_jupyter_server_extension(jp_serverapp) # type:ignore[no-untyped-call]
146+
app._link_jupyter_server_extension(jp_serverapp)
147147
app.initialize() # type:ignore[no-untyped-call]
148148
return app

jupyterlab_server/settings_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ def _get_user_settings(settings_dir: str, schema_name: str, schema: Any) -> dict
9292

9393
if os.path.exists(path):
9494
stat = os.stat(path)
95-
last_modified = tz.utcfromtimestamp(stat.st_mtime).isoformat()
96-
created = tz.utcfromtimestamp(stat.st_ctime).isoformat()
95+
last_modified = tz.utcfromtimestamp(stat.st_mtime).isoformat() # type:ignore[no-untyped-call]
96+
created = tz.utcfromtimestamp(stat.st_ctime).isoformat() # type:ignore[no-untyped-call]
9797
with open(path, encoding="utf-8") as fid:
9898
try: # to load and parse the settings file.
9999
raw = fid.read() or raw

jupyterlab_server/workspaces_handler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ def _load_with_file_times(workspace_path: Path) -> dict:
5757
with workspace_path.open(encoding="utf-8") as fid:
5858
workspace = json.load(fid)
5959
workspace["metadata"].update(
60-
last_modified=tz.utcfromtimestamp(stat.st_mtime).isoformat(),
61-
created=tz.utcfromtimestamp(stat.st_ctime).isoformat(),
60+
last_modified=tz.utcfromtimestamp(stat.st_mtime).isoformat(), # type:ignore[no-untyped-call]
61+
created=tz.utcfromtimestamp(stat.st_ctime).isoformat(), # type:ignore[no-untyped-call]
6262
)
6363
return workspace
6464

0 commit comments

Comments
 (0)