Skip to content

Commit 0f7bff5

Browse files
committed
Fix formatting for latest Black
1 parent 1c07beb commit 0f7bff5

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

test_elasticsearch/test_helpers.py

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,17 @@ def test_expand_action_actions(self):
9696
assert helpers.expand_action(
9797
{"_op_type": "create", "_id": "id", "_index": "index", "key": "val"}
9898
) == ({"create": {"_id": "id", "_index": "index"}}, {"key": "val"})
99-
assert helpers.expand_action(
100-
{
101-
"_op_type": "create",
102-
"_id": "id",
103-
"_index": "index",
104-
"_source": {"key": "val"},
105-
}
106-
) == ({"create": {"_id": "id", "_index": "index"}}, {"key": "val"})
99+
assert (
100+
helpers.expand_action(
101+
{
102+
"_op_type": "create",
103+
"_id": "id",
104+
"_index": "index",
105+
"_source": {"key": "val"},
106+
}
107+
)
108+
== ({"create": {"_id": "id", "_index": "index"}}, {"key": "val"})
109+
)
107110

108111
def test_expand_action_options(self):
109112
for option in (

utils/run-unasync.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@ def main():
4545
Path(__file__).absolute().parent.parent / "elasticsearch/_async"
4646
):
4747
for filename in filenames:
48-
if filename.rpartition(".")[-1] in (
49-
"py",
50-
"pyi",
51-
) and not filename.startswith("utils.py"):
48+
if (
49+
filename.rpartition(".")[-1]
50+
in (
51+
"py",
52+
"pyi",
53+
)
54+
and not filename.startswith("utils.py")
55+
):
5256
filepaths.append(os.path.join(root, filename))
5357

5458
unasync.unasync_files(filepaths, rules)

0 commit comments

Comments
 (0)