Skip to content

Commit

Permalink
Fix typos found by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 26, 2024
1 parent 95ae5eb commit ca5a2e6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions tabulate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ def tabulate(
aligns = [colglobalalign] * len(cols)
else: # default
aligns = [numalign if ct in [int, float] else stralign for ct in coltypes]
# then specific alignements
# then specific alignments
if colalign is not None:
assert isinstance(colalign, Iterable)
if isinstance(colalign, str):
Expand All @@ -2233,7 +2233,7 @@ def tabulate(
aligns_headers = [headersglobalalign] * len(t_cols)
else: # default
aligns_headers = aligns or [stralign] * len(headers)
# then specific header alignements
# then specific header alignments
if headersalign is not None:
assert isinstance(headersalign, Iterable)
if isinstance(headersalign, str):
Expand Down Expand Up @@ -2512,7 +2512,7 @@ def _update_lines(self, lines, new_line):
else: # A single reset code resets everything
self._active_codes = []

# Always ensure each line is color terminted if any colors are
# Always ensure each line is color terminated if any colors are
# still active, otherwise colors will bleed into other cells on the console
if len(self._active_codes) > 0:
new_line = new_line + _ansi_color_reset_code
Expand Down
6 changes: 3 additions & 3 deletions test/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


def test_iterable_of_iterables():
"Input: an interable of iterables."
"Input: an iterable of iterables."
ii = iter(map(lambda x: iter(x), [range(5), range(5, 0, -1)]))
expected = "\n".join(
["- - - - -", "0 1 2 3 4", "5 4 3 2 1", "- - - - -"]
Expand All @@ -21,7 +21,7 @@ def test_iterable_of_iterables():


def test_iterable_of_iterables_headers():
"Input: an interable of iterables with headers."
"Input: an iterable of iterables with headers."
ii = iter(map(lambda x: iter(x), [range(5), range(5, 0, -1)]))
expected = "\n".join(
[
Expand All @@ -36,7 +36,7 @@ def test_iterable_of_iterables_headers():


def test_iterable_of_iterables_firstrow():
"Input: an interable of iterables with the first row as headers"
"Input: an iterable of iterables with the first row as headers"
ii = iter(map(lambda x: iter(x), ["abcde", range(5), range(5, 0, -1)]))
expected = "\n".join(
[
Expand Down

0 comments on commit ca5a2e6

Please sign in to comment.