Skip to content

Commit

Permalink
TYP: Remove normed= from typing stubs
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
seberg committed Jun 2, 2022
1 parent 5d3845e commit 8768a92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
6 changes: 2 additions & 4 deletions numpy/lib/histograms.pyi
Expand Up @@ -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]]]: ...
9 changes: 3 additions & 6 deletions numpy/lib/twodim_base.pyi
Expand Up @@ -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]],
Expand All @@ -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]],
Expand All @@ -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],
Expand Down

0 comments on commit 8768a92

Please sign in to comment.