From 569b3b5803d1fc42cce8b5d6747ed2504651be66 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Fri, 22 Feb 2019 17:49:52 +0800 Subject: [PATCH] Add missing type hints --- nonebot/default_config.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nonebot/default_config.py b/nonebot/default_config.py index 9ca0523e..173e5409 100644 --- a/nonebot/default_config.py +++ b/nonebot/default_config.py @@ -38,13 +38,13 @@ SESSION_RUNNING_EXPRESSION: Expression_T = '您有命令正在执行,请稍后 SHORT_MESSAGE_MAX_LENGTH: int = 50 -SESSION_CANCEL_EXPRESSION = '好的' - DEFAULT_VALIDATION_FAILURE_EXPRESSION: Expression_T = '您的输入不符合要求,请重新输入' -MAX_VALIDATION_FAILURES = 3 +MAX_VALIDATION_FAILURES: int = 3 TOO_MANY_VALIDATION_FAILURES_EXPRESSION: Expression_T = \ '您输入错误太多次啦,如需重试,请重新触发本功能' +SESSION_CANCEL_EXPRESSION: Expression_T = '好的' + APSCHEDULER_CONFIG: Dict[str, Any] = { 'apscheduler.timezone': 'Asia/Shanghai' }