Fix the SonarQube findings

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-19 13:06:20 +08:00
co-authored by Claude Opus 5
parent 2fa55f29d7
commit e1e2c86661
4 changed files with 96 additions and 56 deletions
@@ -632,7 +632,7 @@ class PerformerGenderDeriver:
known: set[str] = {x for x in values if x}
if len(known) > 1:
return cls.__MIXED
if len(known) == 1 and all(x for x in values):
if len(known) == 1 and all(values):
return known.pop()
return None