Skip to content

Commit

Permalink
MAINT: Make guess parameter keyword only
Browse files Browse the repository at this point in the history
This parameter will be added as a new parameter, I think it is more descriptive to have
keyword only parameters for non-essential params.
  • Loading branch information
Kai-Striega committed Nov 17, 2023
1 parent 671d2d7 commit 122aa52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy_financial/_financial.py
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ def rate(nper, pmt, pv, fv, when='end', guess=None, tol=None, maxiter=100, *, ra
return rn


def irr(values, guess=None, *, tol=1e-12, maxiter=100, raise_exceptions=False):
def irr(values, *, guess=None, tol=1e-12, maxiter=100, raise_exceptions=False):
"""
Return the Internal Rate of Return (IRR).
Expand Down

0 comments on commit 122aa52

Please sign in to comment.