Skip to content

Commit 8c5e6e7

Browse files
committed
Fix linting issue after merging changes
2 parents 7737d4c + 3311612 commit 8c5e6e7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

numpy_financial/_financial.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,7 +931,11 @@ def npv(rate, values):
931931
net present value:
932932
933933
>>> rate, cashflows = 0.08, [-40_000, 5_000, 8_000, 12_000, 30_000]
934+
<<<<<<< HEAD
934935
>>> round(npf.npv(rate, cashflows), 5)
936+
=======
937+
>>> np.round(npf.npv(rate, cashflows), 5)
938+
>>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
935939
3065.22267
936940
937941
It may be preferable to split the projected cashflow into an initial
@@ -1061,6 +1065,7 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
10611065
Finally, let's explore the situation where all cash flows are positive,
10621066
and the `raise_exceptions` parameter is set to True.
10631067
1068+
<<<<<<< HEAD
10641069
>>> npf.mirr([
10651070
... 100, 50, 60, 70],
10661071
... 0.10, 0.12,
@@ -1070,6 +1075,12 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
10701075
...
10711076
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since
10721077
all cashflows are of the same sign.
1078+
=======
1079+
>>> npf.mirr([100, 50, 60, 70], 0.10, 0.12, raise_exceptions=True)
1080+
Traceback (most recent call last):
1081+
...
1082+
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since all cashflows are of the same sign.
1083+
>>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
10731084
"""
10741085
values = np.asarray(values)
10751086
n = values.size

0 commit comments

Comments
 (0)