File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 45
45
)
46
46
47
47
if TYPE_CHECKING :
48
+ from collections .abc import Callable
48
49
from typing import TypeAlias
49
50
50
51
from pandas import Index
@@ -548,7 +549,7 @@ def _interpolate_scipy_wrapper(
548
549
new_x = np .asarray (new_x )
549
550
550
551
# ignores some kwargs that could be passed along.
551
- alt_methods = {
552
+ alt_methods : dict [ str , Callable [..., np . ndarray ]] = {
552
553
"barycentric" : interpolate .barycentric_interpolate ,
553
554
"krogh" : interpolate .krogh_interpolate ,
554
555
"from_derivatives" : _from_derivatives ,
@@ -566,6 +567,7 @@ def _interpolate_scipy_wrapper(
566
567
"cubic" ,
567
568
"polynomial" ,
568
569
]
570
+ terp : Callable [..., np .ndarray ] | None
569
571
if method in interp1d_methods :
570
572
if method == "polynomial" :
571
573
kind = order
You can’t perform that action at this time.
0 commit comments