From 53f4079479dcdb3103942d7f1e95ada3850125d3 Mon Sep 17 00:00:00 2001 From: Li Chuangbo Date: Mon, 10 Oct 2022 14:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20typo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- metadata/shortname.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/metadata/shortname.py b/metadata/shortname.py index 44d16041..bcf8e415 100644 --- a/metadata/shortname.py +++ b/metadata/shortname.py @@ -187,7 +187,7 @@ weapons = { # noinspection PyPep8Naming @functools.lru_cache() def roleToName(shortname: str) -> str: - """讲角色昵称转为正式名""" + """将角色昵称转为正式名""" return next((value[0] for value in roles.values() for name in value if name == shortname), shortname) @@ -201,7 +201,7 @@ def roleToId(name: str) -> int | None: # noinspection PyPep8Naming @functools.lru_cache() def weaponToName(shortname: str) -> str: - """讲武器昵称转为正式名""" + """将武器昵称转为正式名""" return next((key for key, value in weapons.items() if shortname == key or shortname in value), shortname)