From 122aa5283f573da0e04abbfcf437c1f65b5a0423 Mon Sep 17 00:00:00 2001 From: Kai Striega Date: Sat, 18 Nov 2023 07:27:08 +0800 Subject: [PATCH] MAINT: Make `guess` parameter keyword only This parameter will be added as a new parameter, I think it is more descriptive to have keyword only parameters for non-essential params. --- numpy_financial/_financial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpy_financial/_financial.py b/numpy_financial/_financial.py index 1b42148..432e32e 100644 --- a/numpy_financial/_financial.py +++ b/numpy_financial/_financial.py @@ -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).