Skip to content

Commit

Permalink
Fix mypy index property access in opensearch example (#35691)
Browse files Browse the repository at this point in the history
The new opensearch-py 2.4.1 added mypy stubs in
opensearch-project/opensearch-py#563 and
they detected an error in our example (and they cause mypy error
when the new version is used)
  • Loading branch information
potiuk authored Nov 16, 2023
1 parent 47e9ad2 commit dffe04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/system/providers/opensearch/example_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def load_connections():
query={"query": {"bool": {"must": {"match": {"message": "hello world"}}}}},
)
search = Search()
search.index = INDEX_NAME
search._index = [INDEX_NAME]
search_object = search.filter("term", logger="airflow").query("match", message="hello airflow")

search_high_level = OpenSearchQueryOperator(task_id="high_level_query", search_object=search_object)
Expand Down

0 comments on commit dffe04a

Please sign in to comment.