From: Jörg Behrmann Date: Tue, 26 Mar 2024 10:35:46 +0000 (+0100) Subject: config: use super in JsonEncoder instead of explicit parent type X-Git-Tag: v23~58^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b01dab98db42e1ce39b4591573d718dbdac034b;p=thirdparty%2Fmkosi.git config: use super in JsonEncoder instead of explicit parent type --- diff --git a/mkosi/config.py b/mkosi/config.py index c008084b6..60e84eb4d 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -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)