Merge pull request #45 from tudor38/fix-spelling

fix spelling
This commit is contained in:
Luciano Ramalho 2025-05-19 16:42:43 -03:00 committed by GitHub
commit e7c182d027
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,8 +6,8 @@ def columnize(
) -> Iterator[tuple[str, ...]]: # <1>
if num_columns == 0:
num_columns = round(len(sequence) ** 0.5)
num_rows, reminder = divmod(len(sequence), num_columns)
num_rows += bool(reminder)
num_rows, remainder = divmod(len(sequence), num_columns)
num_rows += bool(remainder)
return (tuple(sequence[i::num_rows]) for i in range(num_rows)) # <2>
# end::COLUMNIZE[]