Skip to content

Commit 2981356

Browse files
author
Mauko Quiroga
committed
Fix some typos
1 parent 54a9c75 commit 2981356

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

openfisca_core/commons/formulas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def apply_thresholds(input: numpy.ndarray, thresholds: ArrayLike[float], choices
1919
A list of the choices made.
2020
2121
Raises:
22-
:exc:`.AssertionError`: When the number of ``thresholds`` (t) and the
22+
:exc:`AssertionError`: When the number of ``thresholds`` (t) and the
2323
number of choices (c) are not either t == c or t == c - 1.
2424
2525
Examples:
@@ -80,7 +80,7 @@ def switch(conditions: numpy.ndarray, value_by_condition: dict) -> numpy.ndarray
8080
An array with the replaced values.
8181
8282
Raises:
83-
:exc:`.AssertionError`: When ``value_by_condition`` is empty.
83+
:exc:`AssertionError`: When ``value_by_condition`` is empty.
8484
8585
Examples:
8686
>>> conditions = numpy.array([1, 1, 1, 2])

openfisca_core/commons/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def stringify_array(array: numpy.ndarray) -> str:
4747
array: An array.
4848
4949
Returns:
50-
"None" if the `array` is None, the stringified ``array`` otherwise.
50+
"None" if the ``array`` is None, the stringified ``array`` otherwise.
5151
5252
Examples:
5353
>>> import numpy

0 commit comments

Comments
 (0)