Skip to content

Commit

Permalink
Add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
kavanase committed Jan 17, 2025
1 parent 71f8701 commit 600104e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pymatgen/core/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def __iter__(self) -> Iterator[Species | Element | DummySpecies]:
return iter(self._data)

def items(self) -> ItemsView[Species | Element | DummySpecies, float]:
"""Returns Dict.items() for the Composition dict."""
return self._data.items()

def __contains__(self, key) -> bool:
Expand Down

0 comments on commit 600104e

Please sign in to comment.