From 4d6f173ce84130540160c1c41641c2dc5c7134eb Mon Sep 17 00:00:00 2001 From: Hui Zhang Date: Fri, 21 May 2021 08:56:30 +0000 Subject: [PATCH] add description for say_digit --- third_party/phkit/phkit/chinese/number.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/phkit/phkit/chinese/number.py b/third_party/phkit/phkit/chinese/number.py index f6efa6d32..a298fef22 100644 --- a/third_party/phkit/phkit/chinese/number.py +++ b/third_party/phkit/phkit/chinese/number.py @@ -18,14 +18,14 @@ _grade_level = {'万', '亿', '个'} _number_group_re = re.compile(r"([0-9]+)") -def say_digit(num: str): +def say_digit(num: str) -> str: """123 -> 一二三 Args: - num (str): [description] + num (str): digit Returns: - [type]: [description] + str: hanzi number """ outs = [] for zi in num: