Skip to content

Commit

Permalink
fix type checks'
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Nov 28, 2023
1 parent 1ed2944 commit 63dcc2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collective/elastic/ingest/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import os
import threading
import typing


if OPENSEARCH:
Expand Down Expand Up @@ -36,7 +37,7 @@ def get_client(index_server_baseurl: str = ""):

if OPENSEARCH:
logger.info(f"Use OpenSearch client at {addresses}")
kwargs = {
kwargs: dict[str, typing.Any] = {
"hosts": [
dict(zip(("host", "port"), address.rsplit(":", 1)))
for address in addresses
Expand Down

0 comments on commit 63dcc2e

Please sign in to comment.