missed index as option (#270)
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 1m53s
All checks were successful
Build AppImage / Explore-Gitea-Actions (push) Successful in 1m53s
Reviewed-on: #270
This commit is contained in:
commit
6ecc789cd5
@ -317,10 +317,13 @@ class QAsciiReader(QtWidgets.QDialog, Ui_ascii_reader):
|
||||
|
||||
return val
|
||||
|
||||
def check_column_numbers(self, values: int | list[int] | None, num_column: int) -> bool:
|
||||
def check_column_numbers(self, values: int | list[int] | str | None, num_column: int) -> bool:
|
||||
is_valid = False
|
||||
if values is None:
|
||||
is_valid = True
|
||||
elif values == 'index':
|
||||
is_valid = True
|
||||
|
||||
elif isinstance(values, int):
|
||||
is_valid = values < num_column
|
||||
elif isinstance(values, list):
|
||||
|
Loading…
Reference in New Issue
Block a user