From c64163875e11fc67cbf501cc7149f6ccfcae6c59 Mon Sep 17 00:00:00 2001 From: Mauko Quiroga Date: Mon, 30 Aug 2021 19:24:13 +0200 Subject: [PATCH] Fix some typos --- openfisca_core/commons/formulas.py | 4 ++-- openfisca_core/commons/misc.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openfisca_core/commons/formulas.py b/openfisca_core/commons/formulas.py index 26dd96b3ee..c898e5581b 100644 --- a/openfisca_core/commons/formulas.py +++ b/openfisca_core/commons/formulas.py @@ -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: @@ -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]) diff --git a/openfisca_core/commons/misc.py b/openfisca_core/commons/misc.py index ea42b29388..7f172593b3 100644 --- a/openfisca_core/commons/misc.py +++ b/openfisca_core/commons/misc.py @@ -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