Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Wilkins <[email protected]>
  • Loading branch information
ElliottKasoar and oerc0122 authored Jun 11, 2024
1 parent 8411277 commit fe4a958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abcd/backends/atoms_opensearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ def from_atoms(
return obj

@property
def _id(self) -> Union[str, None]:
def _id(self) -> Optional[str]:
"""
Get the OpenSearch document ID stored in data.
Returns
-------
Union[str, None]
Optional[str]
Current document ID.
"""
return self.get("_id", None)
Expand Down

0 comments on commit fe4a958

Please sign in to comment.