Skip to content

Commit

Permalink
avoid bypassing method resolution order
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielYang59 committed May 31, 2024
1 parent 2cac5f7 commit a2678bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/io/lobster/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def write_lobsterin(
overwritedict (dict): dict that can be used to update lobsterin, e.g. {"skipdos": True}
"""
# Update previous entries
self.data |= {} if overwritedict is None else overwritedict
self |= {} if overwritedict is None else overwritedict

with open(path, mode="w", encoding="utf-8") as file:
for key in self:
Expand Down

0 comments on commit a2678bf

Please sign in to comment.