From e52b2672c6492888e9f4c0c8cc37018e261ba875 Mon Sep 17 00:00:00 2001 From: WillLin Date: Thu, 28 Aug 2025 22:14:46 +0800 Subject: [PATCH] fix: NoValue does not return False when using its boolean value --- client/sources/common/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/sources/common/core.py b/client/sources/common/core.py index a9371305..da287e70 100644 --- a/client/sources/common/core.py +++ b/client/sources/common/core.py @@ -6,7 +6,8 @@ ############### class NoValue(object): - pass + def __bool__(self): + return False NoValue = NoValue()