fix:修复代码兼容性写法

This commit is contained in:
jxxghp
2025-03-23 12:10:21 +08:00
parent 79411a7350
commit 2f38b3040d
27 changed files with 242 additions and 145 deletions

View File

@@ -207,7 +207,7 @@ class StringUtils:
return [StringUtils.clear(x) for x in text]
@staticmethod
def clear_upper(text: str) -> str:
def clear_upper(text: Optional[str]) -> str:
"""
去除特殊字符,同时大写
"""
@@ -596,7 +596,7 @@ class StringUtils:
return mtype, key_word, season_num, episode_num, year, content
@staticmethod
def str_title(s: str) -> str:
def str_title(s: Optional[str]) -> str:
"""
大写首字母兼容None
"""