From fd468709c65af8459097d2e2b331ebe08a6e27e2 Mon Sep 17 00:00:00 2001 From: yaozhicheng Date: Mon, 4 Nov 2024 14:53:49 +0800 Subject: [PATCH] CFG: ignore _freeze in as_dict --- comm/cfg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/comm/cfg.py b/comm/cfg.py index dcaaa38..934164e 100644 --- a/comm/cfg.py +++ b/comm/cfg.py @@ -41,6 +41,8 @@ class CfgObject: def as_dict(self): data = {} for key, value in self.__dict__.items(): + if key == "_freeze": + continue if isinstance(value, CfgObject): data[key] = value.as_dict() else: