[CI][RFC] Replace black-jupyter with ruff-format (#37210)
Co-authored-by: Alison Shao <a.shao@wustl.edu>
This commit is contained in:
co-authored by
Alison Shao
parent
2641e427be
commit
28262c20df
@@ -187,9 +187,9 @@ def test_no_unordered_container_reaches_the_key(monkeypatch):
|
||||
_build_key()
|
||||
|
||||
def walk(value, path="parts"):
|
||||
assert not isinstance(
|
||||
value, (set, frozenset, dict)
|
||||
), f"unordered container at {path}: {type(value).__name__}"
|
||||
assert not isinstance(value, (set, frozenset, dict)), (
|
||||
f"unordered container at {path}: {type(value).__name__}"
|
||||
)
|
||||
if isinstance(value, (list, tuple)):
|
||||
for index, item in enumerate(value):
|
||||
walk(item, f"{path}[{index}]")
|
||||
|
||||
Reference in New Issue
Block a user