Skip to content

Commit

Permalink
Fix linting issue in doctests for PR 94
Browse files Browse the repository at this point in the history
  • Loading branch information
MashyBasker committed Dec 10, 2023
1 parent d95c032 commit 7737d4c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions numpy_financial/_financial.py
Original file line number Diff line number Diff line change
Expand Up @@ -1061,10 +1061,15 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
Finally, let's explore the situation where all cash flows are positive,
and the `raise_exceptions` parameter is set to True.
>>> npf.mirr([100, 50, 60, 70], 0.10, 0.12, raise_exceptions=True)
>>> npf.mirr([
... 100, 50, 60, 70],
... 0.10, 0.12,
... raise_exceptions=True
... ) #doctest: +NORMALIZE_WHITESPACE
Traceback (most recent call last):
...
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since all cashflows are of the same sign.
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since
all cashflows are of the same sign.
"""
values = np.asarray(values)
n = values.size
Expand Down

0 comments on commit 7737d4c

Please sign in to comment.