]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
config: use super in JsonEncoder instead of explicit parent type
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 26 Mar 2024 10:35:46 +0000 (11:35 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 26 Mar 2024 10:38:04 +0000 (11:38 +0100)
mkosi/config.py

index c008084b6885039000e4e072ba85f68a8c6a740f..60e84eb4de9f30c81e4d2172f3cfd3559798a503 100644 (file)
@@ -3855,7 +3855,7 @@ class JsonEncoder(json.JSONEncoder):
             return str(o)
         elif isinstance(o, (Args, Config)):
             return o.to_dict()
-        return json.JSONEncoder.default(self, o)
+        return super().default(o)
 
 
 E = TypeVar("E", bound=StrEnum)