Skip to content

Commit 6e4aef7

Browse files
mgunyhoMarton Gunyho
authored and
Marton Gunyho
committed
Update type hints for curvefit p0 and bounds
1 parent 6bd17cd commit 6e4aef7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

xarray/core/dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6116,8 +6116,8 @@ def curvefit(
61166116
func: Callable[..., Any],
61176117
reduce_dims: Dims = None,
61186118
skipna: bool = True,
6119-
p0: dict[str, Any] | None = None,
6120-
bounds: dict[str, Any] | None = None,
6119+
p0: dict[str, float | DataArray] | None = None,
6120+
bounds: dict[str, tuple[float | DataArray, float | DataArray]] | None = None,
61216121
param_names: Sequence[str] | None = None,
61226122
kwargs: dict[str, Any] | None = None,
61236123
) -> Dataset:

xarray/core/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8560,8 +8560,8 @@ def curvefit(
85608560
func: Callable[..., Any],
85618561
reduce_dims: Dims = None,
85628562
skipna: bool = True,
8563-
p0: dict[str, Any] | None = None,
8564-
bounds: dict[str, Any] | None = None,
8563+
p0: dict[str, float | DataArray] | None = None,
8564+
bounds: dict[str, tuple[float | DataArray, float | DataArray]] | None = None,
85658565
param_names: Sequence[str] | None = None,
85668566
kwargs: dict[str, Any] | None = None,
85678567
) -> T_Dataset:

0 commit comments

Comments
 (0)