Skip to content

Commit d51b9c0

Browse files
committed
Run ruff check --fix
1 parent baae825 commit d51b9c0

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

jupyter_core/utils/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
import sys
1010
import threading
1111
import warnings
12+
from collections.abc import Awaitable, Callable
1213
from contextvars import ContextVar
1314
from pathlib import Path
1415
from types import FrameType
15-
from typing import Any, Awaitable, Callable, TypeVar, cast
16+
from typing import Any, TypeVar, cast
1617

1718

1819
def ensure_dir_exists(path: str | Path, mode: int = 0o777) -> None:

tests/test_migrate.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,9 @@ def notice_m_dir(src, dst):
132132
called["migrate_dir"] = True
133133
return migrate_dir(src, dst)
134134

135-
with patch.object(migrate_mod, "migrate_file", notice_m_file), patch.object(
136-
migrate_mod, "migrate_dir", notice_m_dir
135+
with (
136+
patch.object(migrate_mod, "migrate_file", notice_m_file),
137+
patch.object(migrate_mod, "migrate_dir", notice_m_dir),
137138
):
138139
assert migrate_one(src, dst)
139140
assert called == {"migrate_file": True}

tests/test_paths.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def test_jupyter_path_user_site():
301301
]
302302
)
303303
)
304-
for p, v in zip(path, values):
304+
for p, v in zip(path, values, strict=False):
305305
assert p == v
306306

307307

@@ -358,7 +358,7 @@ def test_jupyter_config_path():
358358
]
359359
)
360360
)
361-
for p, v in zip(path, values):
361+
for p, v in zip(path, values, strict=False):
362362
assert p == v
363363

364364

@@ -383,7 +383,7 @@ def test_jupyter_config_path_prefer_env():
383383
]
384384
)
385385
)
386-
for p, v in zip(path, values):
386+
for p, v in zip(path, values, strict=False):
387387
assert p == v
388388

389389

0 commit comments

Comments
 (0)