Skip to content

Commit

Permalink
Spelling Fixes (#1131)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoref committed Oct 18, 2022
1 parent 1bba2a8 commit 8cac5fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ After 8 years we're pleased to announce Arrow v1.0. Thanks to the entire Python
- [FIX] Consolidated and simplified German locales.
- [INTERNAL] Moved testing suite from nosetest/Chai to pytest/pytest-mock.
- [INTERNAL] Converted xunit-style setup and teardown functions in tests to pytest fixtures.
- [INTERNAL] Setup Github Actions for CI alongside Travis.
- [INTERNAL] Setup GitHub Actions for CI alongside Travis.
- [INTERNAL] Help support Arrow's future development by donating to the project on `Open Collective <https://opencollective.com/arrow>`_.

0.15.5 (2020-01-03)
Expand Down Expand Up @@ -659,7 +659,7 @@ The following will work in v0.15.0:
- [NEW] Brazilian locale (Augusto2112)
- [NEW] Dutch locale (OrangeTux)
- [NEW] Italian locale (Pertux)
- [NEW] Austrain locale (LeChewbacca)
- [NEW] Austrian locale (LeChewbacca)
- [NEW] Tagalog locale (Marksteve)
- [FIX] Corrected spelling and day numbers in German locale (LeChewbacca)
- [FIX] Factory ``get`` method should now handle unicode strings correctly (Bwells)
Expand Down
4 changes: 2 additions & 2 deletions arrow/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ def gather_timeframes(_delta: float, _frame: TimeFrameLiteral) -> float:

def dehumanize(self, input_string: str, locale: str = "en_us") -> "Arrow":
"""Returns a new :class:`Arrow <arrow.arrow.Arrow>` object, that represents
the time difference relative to the attrbiutes of the
the time difference relative to the attributes of the
:class:`Arrow <arrow.arrow.Arrow>` object.
:param timestring: a ``str`` representing a humanized relative time.
Expand Down Expand Up @@ -1419,7 +1419,7 @@ def dehumanize(self, input_string: str, locale: str = "en_us") -> "Arrow":
# Assert error if string does not modify any units
if not any([True for k, v in unit_visited.items() if v]):
raise ValueError(
"Input string not valid. Note: Some locales do not support the week granulairty in Arrow. "
"Input string not valid. Note: Some locales do not support the week granularity in Arrow. "
"If you are attempting to use the week granularity on an unsupported locale, this could be the cause of this error."
)

Expand Down
4 changes: 2 additions & 2 deletions tests/test_arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -2295,8 +2295,8 @@ def test_empty_granularity_list(self):
arw.humanize(later, granularity=[])

# Bulgarian is an example of a language that overrides _format_timeframe
# Applicabale to all locales. Note: Contributors need to make sure
# that if they override describe or describe_mutli, that delta
# Applicable to all locales. Note: Contributors need to make sure
# that if they override describe or describe_multi, that delta
# is truncated on call

def test_no_floats(self):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,9 +917,9 @@ def test_timestamp_milli(self):

def test_time(self):
time_re = parser.DateTimeParser._TIME_RE
time_seperators = [":", ""]
time_separators = [":", ""]

for sep in time_seperators:
for sep in time_separators:
assert time_re.findall("12") == [("12", "", "", "", "")]
assert time_re.findall(f"12{sep}35") == [("12", "35", "", "", "")]
assert time_re.findall("12{sep}35{sep}46".format(sep=sep)) == [
Expand Down

0 comments on commit 8cac5fa

Please sign in to comment.