From 871e9b1c95b6f41739c25838178da45f146c4348 Mon Sep 17 00:00:00 2001 From: Jan Heinrich Reimer Date: Wed, 3 Jul 2024 11:42:27 +0200 Subject: [PATCH] Backport typing --- ray_elasticsearch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ray_elasticsearch/__init__.py b/ray_elasticsearch/__init__.py index 21f984d..c8b1d93 100644 --- a/ray_elasticsearch/__init__.py +++ b/ray_elasticsearch/__init__.py @@ -52,7 +52,7 @@ class ElasticsearchDatasource(Datasource): def __init__( self, index: str, - query: Mapping[str, Any] | None = None, + query: Optional[Mapping[str, Any]] = None, keep_alive: str = "5m", chunk_size: int = 1000, client_kwargs: dict[str, Any] = {},