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] = {},