From 8de370e94c60367b5dc6ba628b617dd337587f1b Mon Sep 17 00:00:00 2001 From: carefree0910 Date: Tue, 22 Dec 2020 08:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BFixed=20legacy=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cflearn/configs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cflearn/configs.py b/cflearn/configs.py index 0c2c5861b..27c6371b5 100644 --- a/cflearn/configs.py +++ b/cflearn/configs.py @@ -147,8 +147,8 @@ def affected_mappings() -> Dict[str, Set[str]]: @property def user_defined_config(self) -> Dict[str, Any]: - user_config = shallow_copy_dict(self.user_config) or {} - user_increment_config = shallow_copy_dict(self.user_increment_config) or {} + user_config = shallow_copy_dict(self.user_config or {}) + user_increment_config = shallow_copy_dict(self.user_increment_config or {}) return update_dict(user_increment_config, user_config) def to_config(self) -> Dict[str, Any]: