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

@@ -70,7 +70,7 @@ class AbstractHID:
self.post_init()
def __repr__(self):
return '{}(REPORT_BYTES={})'.format(self.__class__.__name__, self.REPORT_BYTES)
return f'{self.__class__.__name__}(REPORT_BYTES={self.REPORT_BYTES})'
def post_init(self):
pass