Skip to content

Commit ed3a069

Browse files
committed
Fix lint
1 parent 056daa8 commit ed3a069

File tree

7 files changed

+11
-10
lines changed

7 files changed

+11
-10
lines changed

elasticsearch/_async/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import anyio
1918
import logging
2019
from typing import (
2120
Any,
@@ -33,6 +32,8 @@
3332
Union,
3433
)
3534

35+
import anyio
36+
3637
from ..exceptions import ApiError, NotFoundError, TransportError
3738
from ..helpers.actions import (
3839
_TYPE_BULK_ACTION,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ dependencies = [
4646
"python-dateutil",
4747
"typing-extensions",
4848
"anyio",
49-
"sniffio",
5049
]
5150

5251
# TODO revert before merging/releasing
@@ -87,6 +86,7 @@ dev = [
8786
"jinja2",
8887
"tqdm",
8988
"trio",
89+
"sniffio",
9090
"mypy",
9191
"pyright",
9292
"types-python-dateutil",

test_elasticsearch/test_async/test_server/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import sniffio
1918
import pytest
19+
import sniffio
2020

2121
import elasticsearch
2222

2323
from ...utils import CA_CERTS, wipe_cluster
2424

2525

26-
2726
@pytest.fixture(scope="function")
2827
async def async_client_factory(elasticsearch_url):
2928
print("async!", elasticsearch_url)

test_elasticsearch/test_async/test_server/test_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import anyio
1918
import logging
2019
from datetime import datetime, timedelta, timezone
2120
from unittest.mock import MagicMock, call, patch
2221

22+
import anyio
2323
import pytest
2424
from elastic_transport import ApiResponseMeta, ObjectApiResponse
2525

test_elasticsearch/test_async/test_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# under the License.
1717

1818

19-
import time
20-
import anyio
2119
import re
20+
import time
2221
import warnings
2322
from typing import Any, Dict, Optional
2423

24+
import anyio
2525
import pytest
2626
from elastic_transport import (
2727
ApiResponseMeta,

test_elasticsearch/test_dsl/async_sleep.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
import anyio
1918
from typing import Union
2019

20+
import anyio
21+
2122

2223
async def sleep(secs: Union[int, float]) -> None:
2324
"""Tests can use this function to sleep."""

test_elasticsearch/test_dsl/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
# under the License.
1717

1818

19-
import sniffio
20-
import anyio
2119
import os
2220
import re
2321
import time
@@ -26,7 +24,9 @@
2624
from unittest import SkipTest
2725
from unittest.mock import AsyncMock, Mock
2826

27+
import anyio
2928
import pytest
29+
import sniffio
3030
from elastic_transport import ObjectApiResponse
3131

3232
from elasticsearch import AsyncElasticsearch, Elasticsearch

0 commit comments

Comments
 (0)