Skip to content

Commit

Permalink
pre-commit auto-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Sep 21, 2024
1 parent 2da756a commit 872de13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/maml/utils/_material.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ def to_composition(obj: Composition | Molecule | Structure | str) -> Composition
"""
if isinstance(obj, str):
return Composition(obj)
if isinstance(obj,(Structure, Molecule)):
if isinstance(obj, (Structure, Molecule)):
return obj.composition
return obj

0 comments on commit 872de13

Please sign in to comment.