style: turn on ruff UP and B rules and fix every finding

This commit is contained in:
imSp4rky
2026-11-25 16:34:09 -07:00
parent 1a63076df2
commit d8058a3610
264 changed files with 2950 additions and 2966 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ def selection(**flags: Any) -> TrackSelection:
"""A TrackSelection with every filter off but the given flags."""
off: dict[str, Any] = {}
for flag in fields(TrackSelection):
off[flag.name] = [] if str(flag.type).startswith("list") else None if "Optional" in str(flag.type) else False
off[flag.name] = None if "None" in str(flag.type) else [] if str(flag.type).startswith("list") else False
return TrackSelection(**{**off, **flags})