Refactor: More f-string

This commit is contained in:
pagedown
2022-01-28 19:34:13 +08:00
parent e0c4a90aa3
commit dc61adf9d8
14 changed files with 35 additions and 54 deletions

View File

@@ -449,8 +449,7 @@ class Window:
return self.override_title or self.child_title
def __repr__(self) -> str:
return 'Window(title={}, id={})'.format(
self.title, self.id)
return f'Window(title={self.title}, id={self.id})'
def as_dict(self, is_focused: bool = False, is_self: bool = False) -> WindowDict:
return dict(