Skip to content

Commit 0e75f04

Browse files
committed
🔧 chore(release): 升级版本到 25.9.29
- 更新项目版本号至 25.9.29 - 确保 __version__.py 和 pyproject.toml 文件版本同步 ♻️ refactor(tieba): 简化贴吧模块的类型提示 - 移除 Union 类型导入,统一使用 Optional[dict] - 优化 get_user_info 方法的返回类型注解 📦 build(deps): 更新 Python 依赖和环境要求 - 降低项目所需的 Python 最低版本至 3.9.0 - 更新 uv.lock 文件以反映新的依赖配置 - 增加 pycryptodome 针对 PyPy 3.9 的轮子支持
1 parent 104f415 commit 0e75f04

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

dailycheckin/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "25.9.28"
1+
__version__ = "25.9.29"

dailycheckin/tieba/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import random
55
import time
6-
from typing import Optional, Union
6+
from typing import Optional
77

88
import requests
99

@@ -49,7 +49,7 @@ def __init__(self, check_item: dict):
4949
if not self.bduss:
5050
raise ValueError("Cookie 中未找到 BDUSS")
5151

52-
def request(self, url: str, method: str = "get", data: dict | None = None, retry: int = 3) -> dict:
52+
def request(self, url: str, method: str = "get", data: Optional[dict] = None, retry: int = 3) -> dict:
5353
for i in range(retry):
5454
try:
5555
if method.lower() == "get":
@@ -80,7 +80,7 @@ def encode_data(self, data: dict) -> dict:
8080
data.update({"sign": sign})
8181
return data
8282

83-
def get_user_info(self) -> tuple[str | bool, str]:
83+
def get_user_info(self):
8484
try:
8585
result = self.request(self.TBS_URL)
8686
if result.get("is_login", 0) == 0:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dailycheckin"
3-
version = "25.9.28"
3+
version = "25.9.29"
44
dependencies = [
55
"pycryptodome==3.17",
66
"requests~=2.25.1",

uv.lock

Lines changed: 6 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)