From 8768a9295c8f02f80531ef813dd5bbf1c8ab3cfc Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Thu, 2 Jun 2022 10:58:52 -0700 Subject: [PATCH] TYP: Remove `normed=` from typing stubs There is still a test with it, but it tests the an error and seems like it still passes, so I just kept it for now. --- numpy/lib/histograms.pyi | 6 ++---- numpy/lib/twodim_base.pyi | 9 +++------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/numpy/lib/histograms.pyi b/numpy/lib/histograms.pyi index 27b9dbcfb361..ce02718adcd5 100644 --- a/numpy/lib/histograms.pyi +++ b/numpy/lib/histograms.pyi @@ -34,16 +34,14 @@ def histogram( a: ArrayLike, bins: _BinKind | SupportsIndex | ArrayLike = ..., range: None | tuple[float, float] = ..., - normed: None = ..., - weights: None | ArrayLike = ..., density: bool = ..., + weights: None | ArrayLike = ..., ) -> tuple[NDArray[Any], NDArray[Any]]: ... def histogramdd( sample: ArrayLike, bins: SupportsIndex | ArrayLike = ..., range: Sequence[tuple[float, float]] = ..., - normed: None | bool = ..., - weights: None | ArrayLike = ..., density: None | bool = ..., + weights: None | ArrayLike = ..., ) -> tuple[NDArray[Any], list[NDArray[Any]]]: ... diff --git a/numpy/lib/twodim_base.pyi b/numpy/lib/twodim_base.pyi index 120abb7e051a..1b3b94bd5cba 100644 --- a/numpy/lib/twodim_base.pyi +++ b/numpy/lib/twodim_base.pyi @@ -166,9 +166,8 @@ def histogram2d( # type: ignore[misc] y: _ArrayLikeFloat_co, bins: int | Sequence[int] = ..., range: None | _ArrayLikeFloat_co = ..., - normed: None | bool = ..., - weights: None | _ArrayLikeFloat_co = ..., density: None | bool = ..., + weights: None | _ArrayLikeFloat_co = ..., ) -> tuple[ NDArray[float64], NDArray[floating[Any]], @@ -180,9 +179,8 @@ def histogram2d( y: _ArrayLikeComplex_co, bins: int | Sequence[int] = ..., range: None | _ArrayLikeFloat_co = ..., - normed: None | bool = ..., - weights: None | _ArrayLikeFloat_co = ..., density: None | bool = ..., + weights: None | _ArrayLikeFloat_co = ..., ) -> tuple[ NDArray[float64], NDArray[complexfloating[Any, Any]], @@ -194,9 +192,8 @@ def histogram2d( y: _ArrayLikeComplex_co, bins: Sequence[_ArrayLikeInt_co], range: None | _ArrayLikeFloat_co = ..., - normed: None | bool = ..., - weights: None | _ArrayLikeFloat_co = ..., density: None | bool = ..., + weights: None | _ArrayLikeFloat_co = ..., ) -> tuple[ NDArray[float64], NDArray[Any],