From 25bbbfc9b87400bc323fe909ca481801b60275ce Mon Sep 17 00:00:00 2001 From: miteruzo Date: Fri, 8 Dec 2023 12:29:10 +0900 Subject: [PATCH] =?UTF-8?q?=E5=86=97=E9=95=B7=E3=81=AA=E8=A8=98=E8=BF=B0?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common_module.py b/common_module.py index e0f8966..cbd6490 100644 --- a/common_module.py +++ b/common_module.py @@ -8,7 +8,7 @@ class CommonModule: @classmethod def len_by_full (cls, string: str) -> float: - return sum ([1 if cls.is_wide (c) else .5 for c in string]) + return sum (1 if cls.is_wide (c) else .5 for c in string) @classmethod def index_by_f2c (cls, string: str, index: float) -> int: