diff --git a/abcd/backends/atoms_opensearch.py b/abcd/backends/atoms_opensearch.py index 498a4e39..e1534c24 100644 --- a/abcd/backends/atoms_opensearch.py +++ b/abcd/backends/atoms_opensearch.py @@ -174,13 +174,14 @@ def from_atoms( return obj @property - def _id(self): + def _id(self) -> Union[str, None]: """ - Gets the OpenSearch document ID stored in data. + Get the OpenSearch document ID stored in data. Returns ------- - Current document ID. + Union[str, None] + Current document ID. """ return self.get("_id", None)