Skip to content

Commit 59f2098

Browse files
committed
flake8 fix max-line-length
1 parent 007f40f commit 59f2098

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

meilisearch/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def index(self, uid: str) -> Index:
219219
return Index(self.config, uid=uid)
220220
raise ValueError("The index UID should not be None")
221221

222-
def multi_search(self, queries: Sequence[Mapping[str, Any]], federation: Optional[Dict[str, Any]] = None) -> Dict[str, List[Dict[str, Any]]]:
222+
def multi_search(self, queries: Sequence[Mapping[str, Any]],
223+
federation: Optional[Dict[str, Any]] = None) -> Dict[str, List[Dict[str, Any]]]:
223224
"""Multi-index search.
224225
225226
Parameters

tests/client/test_client_multi_search_meilisearch.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def test_multi_search_on_no_index(client):
3535
client.multi_search([{"indexUid": "indexDoesNotExist", "q": ""}])
3636

3737

38-
def test_multi_search_with_no_value_in_federation(client, empty_index, index_with_documents):
38+
def test_multi_search_with_no_value_in_federation(client, empty_index,
39+
index_with_documents):
3940
"""Tests multi-search with federation, but no value"""
4041
index_with_documents()
4142
empty_index("indexB")
@@ -48,11 +49,15 @@ def test_multi_search_with_no_value_in_federation(client, empty_index, index_wit
4849
assert response["limit"] == 20
4950
assert response["offset"] == 0
5051

51-
def test_multi_search_with_offset_and_limit_in_federation(client, index_with_documents):
52+
53+
def test_multi_search_with_offset_and_limit_in_federation(
54+
client,
55+
index_with_documents):
5256
"""Tests multi-search with federation, with offset and limit value"""
5357
index_with_documents()
54-
response = client.multi_search([{"indexUid": INDEX_UID, "q": ""}], {"offset": 2, "limit": 2})
55-
58+
response = client.multi_search([{"indexUid": INDEX_UID, "q": ""}],
59+
{"offset": 2, "limit": 2})
60+
5661
assert "results" not in response
5762
assert len(response["hits"]) == 2
5863
assert "_federation" in response["hits"][0]
@@ -63,7 +68,9 @@ def test_multi_search_with_offset_and_limit_in_federation(client, index_with_doc
6368
def test_multi_search_with_federation_options(client, index_with_documents):
6469
"""Tests multi-search with federation, with federation options"""
6570
index_with_documents()
66-
response = client.multi_search([{"indexUid": INDEX_UID, "q": "", "federationOptions": {"weight": 0.99}}], {"limit": 2})
71+
response = client.multi_search(
72+
[{"indexUid": INDEX_UID, "q": "",
73+
"federationOptions": {"weight": 0.99}}], {"limit": 2})
6774

6875
assert "results" not in response
6976
assert response["hits"][0]["_federation"]["indexUid"] == INDEX_UID

0 commit comments

Comments
 (0)