Skip to content

Commit

Permalink
Improve misc doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauko Quiroga committed Aug 31, 2021
1 parent 6aa9198 commit 9a6ec1f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openfisca_core/commons/rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import numpy

from . import ArrayLike
from .typing import ArrayLike, NDArray


def average_rate(target: numpy.ndarray, varying: ArrayLike[float], trim: Optional[ArrayLike[float]] = None) -> numpy.ndarray:
def average_rate(target: NDArray[float], varying: ArrayLike[float], trim: Optional[ArrayLike[float]] = None) -> NDArray[float]:
"""Computes the average rate of a target net income.
Given a ``target`` net income, and according to the ``varying`` gross
Expand Down Expand Up @@ -40,7 +40,7 @@ def average_rate(target: numpy.ndarray, varying: ArrayLike[float], trim: Optiona
return average_rate


def marginal_rate(target: numpy.ndarray, varying: numpy.ndarray, trim: Optional[ArrayLike[float]] = None) -> numpy.ndarray:
def marginal_rate(target: NDArray[float], varying: NDArray[float], trim: Optional[ArrayLike[float]] = None) -> NDArray[float]:
"""Computes the marginal rate of a target net income.
Given a ``target`` net income, and according to the ``varying`` gross
Expand Down

0 comments on commit 9a6ec1f

Please sign in to comment.