Coding style
- Use staticmethod where possible.
This commit is contained in:
parent
d5ab419fc2
commit
0ab831e48b
3 changed files with 6 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue