Skip to content

Commit 7737d4c

Browse files
committed
Fix linting issue in doctests for PR 94
1 parent d95c032 commit 7737d4c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

numpy_financial/_financial.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,10 +1061,15 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
10611061
Finally, let's explore the situation where all cash flows are positive,
10621062
and the `raise_exceptions` parameter is set to True.
10631063
1064-
>>> npf.mirr([100, 50, 60, 70], 0.10, 0.12, raise_exceptions=True)
1064+
>>> npf.mirr([
1065+
... 100, 50, 60, 70],
1066+
... 0.10, 0.12,
1067+
... raise_exceptions=True
1068+
... ) #doctest: +NORMALIZE_WHITESPACE
10651069
Traceback (most recent call last):
10661070
...
1067-
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since all cashflows are of the same sign.
1071+
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since
1072+
all cashflows are of the same sign.
10681073
"""
10691074
values = np.asarray(values)
10701075
n = values.size

0 commit comments

Comments
 (0)