From a2678bf4fda7e0a87fbebec5706a89cc6d672cc4 Mon Sep 17 00:00:00 2001 From: "Haoyu (Daniel)" Date: Fri, 31 May 2024 11:42:53 +0800 Subject: [PATCH] avoid bypassing method resolution order --- pymatgen/io/lobster/inputs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymatgen/io/lobster/inputs.py b/pymatgen/io/lobster/inputs.py index 7ac37eacf21..7e28c9676d3 100644 --- a/pymatgen/io/lobster/inputs.py +++ b/pymatgen/io/lobster/inputs.py @@ -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: