Skip to content

Commit

Permalink
Fix compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
janheinrichmerker committed Oct 14, 2024
1 parent d13da48 commit a793bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ray_elasticsearch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def num_rows(self) -> int:
return self._num_rows

@cached_property
def _estimated_inmemory_data_size(self) -> int | None:
def _estimated_inmemory_data_size(self) -> Optional[int]:
stats = self._elasticsearch.indices.stats(
index=self._index,
metric="store",
Expand All @@ -96,7 +96,7 @@ def _estimated_inmemory_data_size(self) -> int | None:
return None
return stats["_all"]["total"]["store"]["total_data_set_size_in_bytes"]

def estimate_inmemory_data_size(self) -> int | None:
def estimate_inmemory_data_size(self) -> Optional[int]:
return self._estimated_inmemory_data_size

@staticmethod
Expand Down

0 comments on commit a793bf6

Please sign in to comment.