Skip to content

Commit 85cfa7e

Browse files
committed
Fix outdated package name references
1 parent 39f0fbb commit 85cfa7e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

elasticsearch_serverless/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565

6666
# This file exists for backwards compatibility.
6767
warnings.warn(
68-
"Importing from the 'elasticsearch.client' module is deprecated. "
69-
"Instead use 'elasticsearch' module for importing the client.",
68+
"Importing from the 'elasticsearch_serverless.client' module is deprecated. "
69+
"Instead use 'elasticsearch_serverless' module for importing the client.",
7070
category=DeprecationWarning,
7171
stacklevel=2,
7272
)

elasticsearch_serverless/transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# This file exists for backwards compatibility.
2424
warnings.warn(
25-
"Importing from the 'elasticsearch.transport' module is deprecated. "
25+
"Importing from the 'elasticsearch_serverless.transport' module is deprecated. "
2626
"Instead import from 'elastic_transport'",
2727
category=DeprecationWarning,
2828
stacklevel=2,
@@ -37,7 +37,7 @@ def get_host_info(
3737
parsed connection information and return the connection information. If
3838
`None` is returned this node will be skipped.
3939
Useful for filtering nodes (by proximity for example) or if additional
40-
information needs to be provided for the :class:`~elasticsearch.Connection`
40+
information needs to be provided for the :class:`~elasticsearch_serverless.Connection`
4141
class. By default master only nodes are filtered out since they shouldn't
4242
typically be used for API operations.
4343
:arg node_info: node information from `/_cluster/nodes`

test_elasticsearch_serverless/test_types/sync_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
from typing import Any, Dict, Generator
1919

20-
from elasticsearch import Elasticsearch
21-
from elasticsearch.helpers import bulk, reindex, scan, streaming_bulk
20+
from elasticsearch_serverless import Elasticsearch
21+
from elasticsearch_serverless.helpers import bulk, reindex, scan, streaming_bulk
2222

2323
es = Elasticsearch(
2424
[{"host": "localhost", "port": 9443}],

0 commit comments

Comments
 (0)