Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Baintner committed Jul 22, 2024
1 parent 68a2509 commit b6a95ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils_rr/ui_utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Util functions for helping build the render rob UI."""
import sys
from contextlib import closing
from typing import Any, List, Optional
from typing import Any, List, Optional, Generator

from PySide6.QtCore import QFile, QMetaObject, Qt
from PySide6.QtGui import QColor
Expand Down Expand Up @@ -61,7 +61,7 @@ def load_ui_from_file(ui_file_name: str, custom_widgets: Optional[List[Any]] = N
return window


def get_combobox_indexes(table: QTableWidget, row: int) -> list:
def get_combobox_indexes(table: QTableWidget, row: int) -> Generator:
"""Get all values of combo boxes in a row."""
for i in COMBOBOX_COLUMNS:
yield table.cellWidget(row, i).currentIndex()
Expand All @@ -76,7 +76,7 @@ def set_combobox_indexes(table: QTableWidget, row: int, values: list[int]) -> No
widget.blockSignals(False)


def get_checkbox_values(table: QTableWidget, row: int) -> list:
def get_checkbox_values(table: QTableWidget, row: int) -> Generator:
"""Get all values of checkboxes in a row."""
for i in CHECKBOX_COLUMNS:
widget = table.cellWidget(row, i)
Expand Down

0 comments on commit b6a95ff

Please sign in to comment.