🔖 Version 3.0.0

This commit is contained in:
XuChenXu
2025-09-22 21:40:56 +08:00
parent 152128391c
commit bd195ac87a
3 changed files with 9 additions and 9 deletions

View File

@ -69,7 +69,7 @@ def got_rank(msg_dict: Dict[int, int]) -> List[List[Any]]:
while len(rank) < plugin_config.get_num: while len(rank) < plugin_config.get_num:
try: try:
max_key = max(msg_dict.items(), key=lambda x: x[1]) max_key = max(msg_dict.items(), key=lambda x: x[1])
rank.append(tuple(max_key)) rank.append(list(max_key))
msg_dict.pop(max_key[0]) msg_dict.pop(max_key[0])
except ValueError: except ValueError:
logger.error( logger.error(

8
pdm.lock generated
View File

@ -5,7 +5,7 @@
groups = ["default", "dev"] groups = ["default", "dev"]
strategy = [] strategy = []
lock_version = "4.5.0" lock_version = "4.5.0"
content_hash = "sha256:42cf686b0618c9e80b1aae28a90a3d694e17da96b6a208ff2720f11d88ef4e4f" content_hash = "sha256:1e8f0e2bc32d8cf861a8342b7d90d683f0efc9cd94ac461dc65363788a365902"
[[metadata.targets]] [[metadata.targets]]
requires_python = ">=3.9,<3.13" requires_python = ">=3.9,<3.13"
@ -1805,7 +1805,7 @@ files = [
[[package]] [[package]]
name = "twine" name = "twine"
version = "6.1.0" version = "6.2.0"
summary = "" summary = ""
dependencies = [ dependencies = [
"id", "id",
@ -1820,8 +1820,8 @@ dependencies = [
"urllib3", "urllib3",
] ]
files = [ files = [
{file = "twine-6.1.0-py3-none-any.whl", hash = "sha256:a47f973caf122930bf0fbbf17f80b83bc1602c9ce393c7845f289a3001dc5384"}, {file = "twine-6.2.0-py3-none-any.whl", hash = "sha256:418ebf08ccda9a8caaebe414433b0ba5e25eb5e4a927667122fbe8f829f985d8"},
{file = "twine-6.1.0.tar.gz", hash = "sha256:be324f6272eff91d07ee93f251edf232fc647935dd585ac003539b42404a8dbd"}, {file = "twine-6.2.0.tar.gz", hash = "sha256:e5ed0d2fd70c9959770dce51c8f39c8945c574e18173a7b81802dab51b4b75cf"},
] ]
[[package]] [[package]]

View File

@ -12,7 +12,7 @@ dependencies = [
"nonebot-plugin-userinfo>=0.2.6", "nonebot-plugin-userinfo>=0.2.6",
"nonebot-plugin-htmlrender>=0.3.3", "nonebot-plugin-htmlrender>=0.3.3",
"nonebot2>=2.3.2", "nonebot2>=2.3.2",
"pillow>=10.4.0", "pillow>=11.3.0",
"nonebot-plugin-uninfo>=0.1.1", "nonebot-plugin-uninfo>=0.1.1",
] ]
requires-python = ">=3.9,<4.0" requires-python = ">=3.9,<4.0"
@ -23,9 +23,9 @@ license = { text = "MIT" }
[project.optional-dependencies] [project.optional-dependencies]
dev = [ dev = [
"ruff>=0.5.5", "ruff>=0.5.5",
"setuptools>=71.1.0", "setuptools>=80.9.0",
"twine>=5.1.0", "twine>=6.2.0",
"nb-cli>=0.7.6", "nb-cli>=1.4.2",
"py-spy>=0.3.14", "py-spy>=0.3.14",
] ]
Test = ["nonebot-adapter-onebot>=2.4.4"] Test = ["nonebot-adapter-onebot>=2.4.4"]