update format to fstring

This commit is contained in:
crazyiop
2022-06-11 23:54:01 +02:00
committed by xs5871
parent 6068b60cac
commit ffcfc9835d
9 changed files with 30 additions and 44 deletions

View File

@@ -36,7 +36,7 @@ class Rgb_matrix_data:
):
keys = [key_color] * number_of_keys
underglow = [underglow_color] * number_of_underglow
print('Rgb_matrix_data(keys={},\nunderglow={})'.format(keys, underglow))
print(f'Rgb_matrix_data(keys={keys},\nunderglow={underglow})')
class Rgb_matrix(Extension):