refactor(project): make pyright & ruff happy

This commit is contained in:
MingxuanGame
2025-08-22 08:21:52 +00:00
parent 3b1d7a2234
commit 598fcc8b38
157 changed files with 2382 additions and 4590 deletions

View File

@@ -63,15 +63,11 @@ async def main():
if not ruleset_inp:
ruleset_inp = str(int(beatmap.mode))
elif not ruleset_inp.isdigit():
ruleset_inp = input(
f"Invalid input. Enter ruleset ID ({int(beatmap.mode)}) >>> "
)
ruleset_inp = input(f"Invalid input. Enter ruleset ID ({int(beatmap.mode)}) >>> ")
continue
ruleset_id = int(ruleset_inp)
if beatmap.mode != GameMode.OSU and ruleset_id != int(beatmap.mode):
ruleset_inp = input(
f"Invalid input. Enter ruleset ID ({int(beatmap.mode)}) >>> "
)
ruleset_inp = input(f"Invalid input. Enter ruleset ID ({int(beatmap.mode)}) >>> ")
continue
break