[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
@@ -714,8 +714,7 @@ class TestResolutionDeclarations(CustomTestCase):
|
||||
current = getattr(server_args, name, None)
|
||||
if current != raw_input[name]:
|
||||
moved.append(
|
||||
f"{shape} -> {name}: raw={raw_input[name]!r} "
|
||||
f"field={current!r}"
|
||||
f"{shape} -> {name}: raw={raw_input[name]!r} field={current!r}"
|
||||
)
|
||||
self.assertEqual(
|
||||
moved,
|
||||
|
||||
@@ -61,7 +61,9 @@ def _holders(fn):
|
||||
else (
|
||||
annotation.id
|
||||
if isinstance(annotation, ast.Name)
|
||||
else annotation.attr if isinstance(annotation, ast.Attribute) else None
|
||||
else annotation.attr
|
||||
if isinstance(annotation, ast.Attribute)
|
||||
else None
|
||||
)
|
||||
)
|
||||
if text == "ServerArgs":
|
||||
|
||||
Reference in New Issue
Block a user