Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Aug 30, 2021
1 parent a69ee47 commit c641638
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openfisca_core/commons/formulas.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def apply_thresholds(input: numpy.ndarray, thresholds: ArrayLike[float], choices
A list of the choices made.
Raises:
:exc:`.AssertionError`: When the number of ``thresholds`` (t) and the
:exc:`AssertionError`: When the number of ``thresholds`` (t) and the
number of choices (c) are not either t == c or t == c - 1.
Examples:
Expand Down Expand Up @@ -80,7 +80,7 @@ def switch(conditions: numpy.ndarray, value_by_condition: dict) -> numpy.ndarray
An array with the replaced values.
Raises:
:exc:`.AssertionError`: When ``value_by_condition`` is empty.
:exc:`AssertionError`: When ``value_by_condition`` is empty.
Examples:
>>> conditions = numpy.array([1, 1, 1, 2])
Expand Down
2 changes: 1 addition & 1 deletion openfisca_core/commons/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def stringify_array(array: numpy.ndarray) -> str:
array: An array.
Returns:
"None" if the `array` is None, the stringified ``array`` otherwise.
"None" if the ``array`` is None, the stringified ``array`` otherwise.
Examples:
>>> import numpy
Expand Down

0 comments on commit c641638

Please sign in to comment.