Coding style

- Use staticmethod where possible.
This commit is contained in:
Andrew Hamilton 2022-05-28 22:44:37 +10:00
parent d5ab419fc2
commit 0ab831e48b
3 changed files with 6 additions and 3 deletions

View file

@ -122,7 +122,8 @@ class Column:
return join_vertical([row_widget.appearance_for((width, item_height))
for row_widget, item_height in zip(self.widgets, heights)])
def _appearance_list(self, widgets):
@staticmethod
def _appearance_list(widgets):
if widgets == []:
return []
appearances = [row_widget.appearance() for row_widget in widgets]