Skip to content

Commit 893c304

Browse files
committed
Run format with isort 6
1 parent 4a7dd93 commit 893c304

File tree

7 files changed

+49
-8
lines changed

7 files changed

+49
-8
lines changed

elasticsearch/dsl/_sync/search.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,15 @@
1616
# under the License.
1717

1818
import contextlib
19-
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, cast
19+
from typing import (
20+
TYPE_CHECKING,
21+
Any,
22+
Dict,
23+
Iterator,
24+
List,
25+
Optional,
26+
cast,
27+
)
2028

2129
from typing_extensions import Self
2230

elasticsearch/helpers/vectorstore/_sync/vectorstore.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@
2222
from elasticsearch import Elasticsearch
2323
from elasticsearch._version import __versionstr__ as lib_version
2424
from elasticsearch.helpers import BulkIndexError, bulk
25-
from elasticsearch.helpers.vectorstore import EmbeddingService, RetrievalStrategy
25+
from elasticsearch.helpers.vectorstore import (
26+
EmbeddingService,
27+
RetrievalStrategy,
28+
)
2629
from elasticsearch.helpers.vectorstore._utils import maximal_marginal_relevance
2730

2831
logger = logging.getLogger(__name__)

examples/dsl/search_as_you_type.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@
2828
import os
2929
from typing import TYPE_CHECKING, Optional
3030

31-
from elasticsearch.dsl import Document, SearchAsYouType, connections, mapped_field
31+
from elasticsearch.dsl import (
32+
Document,
33+
SearchAsYouType,
34+
connections,
35+
mapped_field,
36+
)
3237
from elasticsearch.dsl.query import MultiMatch
3338

3439

noxfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def test_otel(session):
6666

6767
@nox.session()
6868
def format(session):
69-
session.install(".", "black~=25.0", "isort", "flynt", "unasync>=0.6.0", "jinja2")
69+
session.install(
70+
".", "black~=25.0", "isort~=6.0", "flynt", "unasync>=0.6.0", "jinja2"
71+
)
7072

7173
session.run("python", "utils/run-unasync.py")
7274
session.run("python", "utils/run-unasync-dsl.py")
@@ -90,7 +92,7 @@ def lint(session):
9092
"flake8",
9193
"black~=25.0",
9294
"mypy",
93-
"isort",
95+
"isort~=6.0",
9496
"types-requests",
9597
"types-python-dateutil",
9698
"unasync>=0.6.0",

test_elasticsearch/test_dsl/_sync/test_index.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@
2222
import pytest
2323
from pytest import raises
2424

25-
from elasticsearch.dsl import Date, Document, Index, IndexTemplate, Text, analyzer
25+
from elasticsearch.dsl import (
26+
Date,
27+
Document,
28+
Index,
29+
IndexTemplate,
30+
Text,
31+
analyzer,
32+
)
2633

2734

2835
class Post(Document):

test_elasticsearch/test_dsl/_sync/test_search.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@
2121
import pytest
2222
from pytest import raises
2323

24-
from elasticsearch.dsl import Document, EmptySearch, Q, Search, query, types, wrappers
24+
from elasticsearch.dsl import (
25+
Document,
26+
EmptySearch,
27+
Q,
28+
Search,
29+
query,
30+
types,
31+
wrappers,
32+
)
2533
from elasticsearch.dsl.exceptions import IllegalOperation
2634

2735

test_elasticsearch/test_dsl/test_integration/_sync/test_search.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,15 @@
2020
from pytest import raises
2121

2222
from elasticsearch import ApiError, Elasticsearch
23-
from elasticsearch.dsl import Date, Document, Keyword, MultiSearch, Q, Search, Text
23+
from elasticsearch.dsl import (
24+
Date,
25+
Document,
26+
Keyword,
27+
MultiSearch,
28+
Q,
29+
Search,
30+
Text,
31+
)
2432
from elasticsearch.dsl.response import aggs
2533

2634
from ..test_data import FLAT_DATA

0 commit comments

Comments
 (0)