if expr min/max (manual)

ruff 'FURB136'
This commit is contained in:
un-pogaz 2025-10-11 17:21:25 +02:00
parent f519b01231
commit 7bbdba14eb

View File

@ -288,10 +288,10 @@ class Table:
conv.in_table = False
def number_of_columns(self):
max = 0
val = 0
for row in self.rows:
max = row.number_of_cells() if row.number_of_cells() > max else max
return max
val = max(val, row.number_of_cells())
return val
def number_or_rows(self):
return len(self.rows)