[PR] #303 from luna-1024: Fix custom_colors keys type mismatch

Fix ColorAlignment.custom_colors.keys() / slots type mismatch
This commit is contained in:
Azalea 2024-10-23 08:59:45 -07:00 committed by GitHub
commit b0b8c51d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -248,7 +248,7 @@ def create_config() -> Config:
# Random color schemes
pis = list(range(len(_prs.unique_colors().colors)))
slots = list(set(re.findall('(?<=\\${c)[0-9](?=})', asc)))
slots = list(set(map(int, re.findall('(?<=\\${c)[0-9](?=})', asc))))
while len(pis) < len(slots):
pis += pis
perm = {p[:len(slots)] for p in permutations(pis)}