1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 03:58:22 +08:00

Opt: Remove unnecessary use of drags, fallback to swipe+click if drag is a must

This commit is contained in:
LmeSzinc
2022-02-01 21:49:57 +08:00
parent 7c4dfd8948
commit df310b9d09
13 changed files with 85 additions and 32 deletions

View File

@@ -506,5 +506,5 @@ def type_to_str(typ):
str: Such as `int`, 'datetime.datetime'.
"""
if not isinstance(typ, type):
typ = type(typ)
return str(typ).strip("<class '>").replace('<', '_').replace('>', '_')
typ = type(typ).__name__
return str(typ)