Skip to content

Commit

Permalink
Fix linting issue after merging changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MashyBasker committed Dec 10, 2023
2 parents 7737d4c + 3311612 commit 8c5e6e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions numpy_financial/_financial.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,11 @@ def npv(rate, values):
net present value:
>>> rate, cashflows = 0.08, [-40_000, 5_000, 8_000, 12_000, 30_000]
<<<<<<< HEAD
>>> round(npf.npv(rate, cashflows), 5)
=======
>>> np.round(npf.npv(rate, cashflows), 5)
>>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
3065.22267
It may be preferable to split the projected cashflow into an initial
Expand Down Expand Up @@ -1061,6 +1065,7 @@ 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.
<<<<<<< HEAD
>>> npf.mirr([
... 100, 50, 60, 70],
... 0.10, 0.12,
Expand All @@ -1070,6 +1075,12 @@ def mirr(values, finance_rate, reinvest_rate, *, raise_exceptions=False):
...
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since
all cashflows are of the same sign.
=======
>>> npf.mirr([100, 50, 60, 70], 0.10, 0.12, raise_exceptions=True)
Traceback (most recent call last):
...
numpy_financial._financial.NoRealSolutionError: No real solution exists for MIRR since all cashflows are of the same sign.
>>>>>>> 3311612dc27bf4d7df10e7cc5b7222bf51113728
"""
values = np.asarray(values)
n = values.size
Expand Down

0 comments on commit 8c5e6e7

Please sign in to comment.